1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

* Catch up to build ID directory changes

This commit is contained in:
Kris Kennaway 2008-07-26 14:13:35 +00:00
parent 1d5ba88d7a
commit 07e904cab8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=217591
2 changed files with 16 additions and 9 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
if [ $# -lt 2 ]; then
echo "usage: $0 arch branch"
if [ $# -lt 3 ]; then
echo "usage: $0 arch branch buildid"
exit 1
fi
@ -10,23 +10,26 @@ pb=/var/portbuild
arch=$1
branch=$2
buildid=$3
builddir=${pb}/${arch}/${branch}/builds/${buildid}
yesreally=0
dryrun=-n
if [ "$3" = "-yesreally" ]; then
if [ "$4" = "-yesreally" ]; then
yesreally=1
dryrun=
fi
distdir=${pb}/${arch}/${branch}/distfiles/
log=${pb}/${arch}/${branch}/logs/.distfiles
distdir=${builddir}/distfiles/
log=${builddir}/logs/.distfiles
if [ -e ${distdir}/.pbtmp ]; then
echo "${distdir} has not been processed!"
exit 1
fi
rsync ${dryrun} -r -v -l -t --exclude RESTRICTED/ ${pb}/${arch}/${branch}/distfiles/ portmgr@ftp-master:w/ports/distfiles/ | tee ${log}
rsync ${dryrun} -r -v -l -t --exclude RESTRICTED/ ${builddir}/distfiles/ portmgr@ftp-master:w/ports/distfiles/ | tee ${log}
num=$(wc -l ${log} | awk '{print $1}')
if [ "$yesreally" = "0" ]; then

View File

@ -21,15 +21,19 @@
#
# 5. Clean up
if [ $# != 2 ]; then
echo "usage: $0 <arch> <branch>"
if [ $# -ne 3 ]; then
echo "usage: $0 <arch> <branch> <buildid>"
exit 1
fi
arch=$1
branch=$2
buildid=$3
distdir=/var/portbuild/${arch}/${branch}/distfiles
pb=/var/portbuild
builddir=${pb}/${arch}/${branch}/builds/${buildid}
distdir=${builddir}/distfiles
cd ${distdir} || exit 1