diff options
author | asami <asami@FreeBSD.org> | 1999-07-30 15:19:44 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1999-07-30 15:19:44 +0800 |
commit | 186872968f875c400c7230dcb06a04597ba12d43 (patch) | |
tree | 91306c682126e178d4cb347950832c174a0f4dc5 /Tools | |
parent | a176c76271ca47ee0677a62c4c7d834683c44c2a (diff) | |
download | freebsd-ports-graphics-186872968f875c400c7230dcb06a04597ba12d43.tar.gz freebsd-ports-graphics-186872968f875c400c7230dcb06a04597ba12d43.tar.zst freebsd-ports-graphics-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-x | Tools/portbuild/scripts/dopackages2 | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Tools/portbuild/scripts/dopackages2 b/Tools/portbuild/scripts/dopackages2 index 33f38c998ee..635000541e4 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} |