mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-06 11:41:52 +00:00
Copy logs to ${portbuild}/buildlogs/${branch}.log.${date}.
Replace another explicit mail address with ${mailto}.
This commit is contained in:
parent
74f6afbed4
commit
10bd1061ba
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=21633
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user