summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>2000-09-26 23:43:09 +0000
committerasami <asami@FreeBSD.org>2000-09-26 23:43:09 +0000
commit2d9e5da89c6ab4a838deacac33b22a1c9e4feb8c (patch)
tree58fe74403daca00f5a7f420ad2d5df7c88297412
parent1182ba9d29985209c092da8e11681a3174674d46 (diff)
downloadFreeBSD-ports-2d9e5da89c6ab4a838deacac33b22a1c9e4feb8c.zip
FreeBSD-ports-2d9e5da89c6ab4a838deacac33b22a1c9e4feb8c.tar.gz
Don't try to process logs twice by protecting this script with a lock file.
-rwxr-xr-xTools/portbuild/scripts/dologs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/dologs b/Tools/portbuild/scripts/dologs
index 1a1c94c..f717d91 100755
--- a/Tools/portbuild/scripts/dologs
+++ b/Tools/portbuild/scripts/dologs
@@ -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
OpenPOWER on IntegriCloud