aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1999-09-11 08:03:12 +0800
committerasami <asami@FreeBSD.org>1999-09-11 08:03:12 +0800
commitf3c8cf5dea0b7274f7310383081ef9a9a1fac920 (patch)
tree16d882a34804500eb0308aea76f322f9bc9960c8 /Tools/portbuild
parent5dcf6ccac71eb9ed8750a943f9f08bfba42afe08 (diff)
downloadfreebsd-ports-gnome-f3c8cf5dea0b7274f7310383081ef9a9a1fac920.tar.gz
freebsd-ports-gnome-f3c8cf5dea0b7274f7310383081ef9a9a1fac920.tar.zst
freebsd-ports-gnome-f3c8cf5dea0b7274f7310383081ef9a9a1fac920.zip
Copy logs to ${portbuild}/buildlogs/${branch}.log.${date}.
Replace another explicit mail address with ${mailto}.
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-xTools/portbuild/scripts/dopackages210
1 files changed, 7 insertions, 3 deletions
diff --git a/Tools/portbuild/scripts/dopackages2 b/Tools/portbuild/scripts/dopackages2
index 635000541e49..5d36929262a3 100755
--- a/Tools/portbuild/scripts/dopackages2
+++ b/Tools/portbuild/scripts/dopackages2
@@ -5,19 +5,23 @@ pb=/a/asami/portbuild
mailto=asami@freebsd.org
lock=${pb}/lock
+date=$(date '+%Y%m%d')
if [ -e ${lock} ]; then
- echo "Skipped since lock file exists" | sendmail asami@freebsd.org
+ echo "Skipped package build since lock file exists" | sendmail $mailto
exit 1
fi
touch ${lock}
+mkdir -p ${pb}/buildlogs
${pb}/scripts/dopackages 4 2>&1 \
- | tee /a/asami/portbuild/4/build.log \
+ | tee ${pb}/4/build.log \
| sendmail $mailto
+cp -p ${pb}/4/build.log ${pb}/buildlogs/4.log.${date}
${pb}/scripts/dopackages -nocvsup 3 2>&1 \
- | tee /a/asami/portbuild/3/build.log \
+ | tee ${pb}/3/build.log \
| sendmail $mailto
+cp -p ${pb}/3/build.log ${pb}/buildlogs/3.log.${date}
rm -f ${lock}