Don't try to process logs twice by protecting this script with a lock file.

This commit is contained in:
Satoshi Asami 2000-09-26 23:43:09 +00:00
parent 68d197cd25
commit 82767949b8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33161

View file

@ -2,7 +2,13 @@
home=/a/asami/portbuild/errorlogs
scripts=/a/asami/portbuild/scripts
for ver in full latest; do
lock=$home/lock
if [ -f $lock ]; then exit; fi
touch $lock
for ver in latest full; do
for num in 3 4 5; do
cd $home/$num-$ver && ${scripts}/processlogs
done
@ -15,3 +21,5 @@ for ver in full latest; do
done
cd $home && ${scripts}/bothlogs [3-5]-$ver
done
rm -f $lock