aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1999-07-30 15:19:44 +0800
committerasami <asami@FreeBSD.org>1999-07-30 15:19:44 +0800
commit186872968f875c400c7230dcb06a04597ba12d43 (patch)
tree91306c682126e178d4cb347950832c174a0f4dc5 /Tools
parenta176c76271ca47ee0677a62c4c7d834683c44c2a (diff)
downloadfreebsd-ports-gnome-186872968f875c400c7230dcb06a04597ba12d43.tar.gz
freebsd-ports-gnome-186872968f875c400c7230dcb06a04597ba12d43.tar.zst
freebsd-ports-gnome-186872968f875c400c7230dcb06a04597ba12d43.zip
Create lock file so you won't have two of these running. Also, separate
the report mailing address into the configurable variables section.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/dopackages218
1 files changed, 16 insertions, 2 deletions
diff --git a/Tools/portbuild/scripts/dopackages2 b/Tools/portbuild/scripts/dopackages2
index 33f38c998eeb..635000541e49 100755
--- a/Tools/portbuild/scripts/dopackages2
+++ b/Tools/portbuild/scripts/dopackages2
@@ -1,9 +1,23 @@
#!/bin/sh
+# configurable variables
pb=/a/asami/portbuild
+mailto=asami@freebsd.org
+
+lock=${pb}/lock
+
+if [ -e ${lock} ]; then
+ echo "Skipped since lock file exists" | sendmail asami@freebsd.org
+ exit 1
+fi
+
+touch ${lock}
+
${pb}/scripts/dopackages 4 2>&1 \
| tee /a/asami/portbuild/4/build.log \
- | sendmail asami@freebsd.org
+ | sendmail $mailto
${pb}/scripts/dopackages -nocvsup 3 2>&1 \
| tee /a/asami/portbuild/3/build.log \
- | sendmail asami@freebsd.org
+ | sendmail $mailto
+
+rm -f ${lock}