summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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