diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1999-07-30 07:19:44 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1999-07-30 07:19:44 +0000 |
commit | 5779c79e66614fc71a0e54707252e652ed81383b (patch) | |
tree | 35427f4dcf49eade36f017502306cbd897a0a539 /Tools | |
parent | Compare the last full runs (and not only the last partial runs). (diff) |
Create lock file so you won't have two of these running. Also, separate
the report mailing address into the configurable variables section.
Notes
Notes:
svn path=/head/; revision=20391
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 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} |