diff options
author | asami <asami@FreeBSD.org> | 2000-11-08 07:40:07 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 2000-11-08 07:40:07 +0800 |
commit | 6703d8e4b457838b41fc024ae4648856d89b85ae (patch) | |
tree | 9bdd1135461e8e59f8afac8c4e768a70eb63b1db /Tools/portbuild | |
parent | de5b3bf1365b1697b6e849ca73df0faf319f255b (diff) | |
download | freebsd-ports-gnome-6703d8e4b457838b41fc024ae4648856d89b85ae.tar.gz freebsd-ports-gnome-6703d8e4b457838b41fc024ae4648856d89b85ae.tar.zst freebsd-ports-gnome-6703d8e4b457838b41fc024ae4648856d89b85ae.zip |
Use YYYYMMDDHH for log files so we can have two builds on the same
day. Remove lock file if package build aborts.
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-x | Tools/portbuild/scripts/dopackages2 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/dopackages2 b/Tools/portbuild/scripts/dopackages2 index a3fcb430b9a7..bac4d7b0c615 100755 --- a/Tools/portbuild/scripts/dopackages2 +++ b/Tools/portbuild/scripts/dopackages2 @@ -7,7 +7,8 @@ pb=/var/portbuild lock=${pb}/lock status=${pb}/status -date=$(date '+%Y%m%d') +date=$(date '+%Y%m%d%H') +shortdate=$(date '+%Y%m%d') if [ -e ${lock} ]; then # echo "Skipped package build since lock file exists" | sendmail $mailto @@ -22,10 +23,12 @@ if [ -f ${pb}/scripts/dopackages.new ]; then mv -f ${pb}/scripts/dopackages.new ${pb}/scripts/dopackages fi ln -sf ${pb}/archive/buildlogs/log.4.${date} ${pb}/4/build.log +ln -sf log.4.${date} ${pb}/archive/buildlogs/log.4.${shortdate} ${pb}/scripts/dopackages $@ 4 ${date} 2>&1 \ | tee ${pb}/archive/buildlogs/log.4.${date} \ | sendmail $mailto if [ -f ${status} ]; then + rm -f ${lock} exit "$(cat ${status})" fi @@ -33,10 +36,12 @@ if [ -f ${pb}/scripts/dopackages.new ]; then mv -f ${pb}/scripts/dopackages.new ${pb}/scripts/dopackages fi ln -sf ${pb}/archive/buildlogs/log.5.${date} ${pb}/5/build.log +ln -sf log.5.${date} ${pb}/archive/buildlogs/log.5.${shortdate} ${pb}/scripts/dopackages -nocvsup $@ 5 ${date} 2>&1 \ | tee ${pb}/archive/buildlogs/log.5.${date} \ | sendmail $mailto if [ -f ${status} ]; then + rm -f ${lock} exit "$(cat ${status})" fi @@ -44,10 +49,12 @@ if [ -f ${pb}/scripts/dopackages.new ]; then mv -f ${pb}/scripts/dopackages.new ${pb}/scripts/dopackages fi ln -sf ${pb}/archive/buildlogs/log.3.${date} ${pb}/3/build.log +ln -sf log.3.${date} ${pb}/archive/buildlogs/log.3.${shortdate} ${pb}/scripts/dopackages -nocvsup $@ 3 ${date} 2>&1 \ | tee ${pb}/archive/buildlogs/log.3.${date} \ | sendmail $mailto if [ -f ${status} ]; then + rm -f ${lock} exit "$(cat ${status})" fi |