1999-06-22 10:43:10 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
1999-07-30 07:19:44 +00:00
|
|
|
# configurable variables
|
1999-06-22 10:43:10 +00:00
|
|
|
pb=/a/asami/portbuild
|
1999-07-30 07:19:44 +00:00
|
|
|
mailto=asami@freebsd.org
|
|
|
|
|
|
|
|
lock=${pb}/lock
|
1999-09-11 00:03:12 +00:00
|
|
|
date=$(date '+%Y%m%d')
|
1999-07-30 07:19:44 +00:00
|
|
|
|
|
|
|
if [ -e ${lock} ]; then
|
1999-09-11 00:03:12 +00:00
|
|
|
echo "Skipped package build since lock file exists" | sendmail $mailto
|
1999-07-30 07:19:44 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
touch ${lock}
|
1999-09-11 00:03:12 +00:00
|
|
|
mkdir -p ${pb}/buildlogs
|
1999-07-30 07:19:44 +00:00
|
|
|
|
1999-06-22 10:43:10 +00:00
|
|
|
${pb}/scripts/dopackages 4 2>&1 \
|
1999-09-11 00:03:12 +00:00
|
|
|
| tee ${pb}/4/build.log \
|
1999-07-30 07:19:44 +00:00
|
|
|
| sendmail $mailto
|
1999-09-11 00:03:12 +00:00
|
|
|
cp -p ${pb}/4/build.log ${pb}/buildlogs/4.log.${date}
|
1999-06-22 10:43:10 +00:00
|
|
|
${pb}/scripts/dopackages -nocvsup 3 2>&1 \
|
1999-09-11 00:03:12 +00:00
|
|
|
| tee ${pb}/3/build.log \
|
1999-07-30 07:19:44 +00:00
|
|
|
| sendmail $mailto
|
1999-09-11 00:03:12 +00:00
|
|
|
cp -p ${pb}/3/build.log ${pb}/buildlogs/3.log.${date}
|
1999-07-30 07:19:44 +00:00
|
|
|
|
|
|
|
rm -f ${lock}
|