1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/Tools/portbuild/scripts/dopackages2
Satoshi Asami 10bd1061ba Copy logs to ${portbuild}/buildlogs/${branch}.log.${date}.
Replace another explicit mail address with ${mailto}.
1999-09-11 00:03:12 +00:00

28 lines
568 B
Bash
Executable File

#!/bin/sh
# configurable variables
pb=/a/asami/portbuild
mailto=asami@freebsd.org
lock=${pb}/lock
date=$(date '+%Y%m%d')
if [ -e ${lock} ]; then
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 ${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 ${pb}/3/build.log \
| sendmail $mailto
cp -p ${pb}/3/build.log ${pb}/buildlogs/3.log.${date}
rm -f ${lock}