aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>2000-09-27 07:43:09 +0800
committerasami <asami@FreeBSD.org>2000-09-27 07:43:09 +0800
commit2d9e5da89c6ab4a838deacac33b22a1c9e4feb8c (patch)
tree58fe74403daca00f5a7f420ad2d5df7c88297412
parent1182ba9d29985209c092da8e11681a3174674d46 (diff)
downloadfreebsd-ports-gnome-2d9e5da89c6ab4a838deacac33b22a1c9e4feb8c.tar.gz
freebsd-ports-gnome-2d9e5da89c6ab4a838deacac33b22a1c9e4feb8c.tar.zst
freebsd-ports-gnome-2d9e5da89c6ab4a838deacac33b22a1c9e4feb8c.zip
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 1a1c94c4e21d..f717d914f46c 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