aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2008-07-26 22:13:35 +0800
committerkris <kris@FreeBSD.org>2008-07-26 22:13:35 +0800
commite6fd7f6eca283817f74974ae44b3c142e34277fc (patch)
tree7b59eed4ed73817a1e7bf994890e4fa4c269492c /Tools
parentf4f8917ef44a3794a38cbf0b450b2cf31768c5fe (diff)
downloadfreebsd-ports-gnome-e6fd7f6eca283817f74974ae44b3c142e34277fc.tar.gz
freebsd-ports-gnome-e6fd7f6eca283817f74974ae44b3c142e34277fc.tar.zst
freebsd-ports-gnome-e6fd7f6eca283817f74974ae44b3c142e34277fc.zip
* Catch up to build ID directory changes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/cpdistfiles15
-rwxr-xr-xTools/portbuild/scripts/dodistfiles10
2 files changed, 16 insertions, 9 deletions
diff --git a/Tools/portbuild/scripts/cpdistfiles b/Tools/portbuild/scripts/cpdistfiles
index 6dbfa2773f29..a8a4e76c3ed8 100755
--- a/Tools/portbuild/scripts/cpdistfiles
+++ b/Tools/portbuild/scripts/cpdistfiles
@@ -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
diff --git a/Tools/portbuild/scripts/dodistfiles b/Tools/portbuild/scripts/dodistfiles
index 2db265200b02..018ab95917a1 100755
--- a/Tools/portbuild/scripts/dodistfiles
+++ b/Tools/portbuild/scripts/dodistfiles
@@ -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