diff options
author | linimon <linimon@FreeBSD.org> | 2010-06-26 07:05:49 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2010-06-26 07:05:49 +0800 |
commit | f51fec33074c7a34bd1742e705f2ec3c02435fe3 (patch) | |
tree | 40afe86ebf45bea9c5029f8aa0fa6a73703cb5ce /Tools | |
parent | f5f347260436d94d391dcef52326d06a7073c38e (diff) | |
download | freebsd-ports-gnome-f51fec33074c7a34bd1742e705f2ec3c02435fe3.tar.gz freebsd-ports-gnome-f51fec33074c7a34bd1742e705f2ec3c02435fe3.tar.zst freebsd-ports-gnome-f51fec33074c7a34bd1742e705f2ec3c02435fe3.zip |
Generalize the packge building scripts to be able to be run on more than
one 'head' node, rather than just pointyhat itself.
Constants are factored out into installation-specific files known as
portbuild/conf/server.conf and portbuild/conf/client.conf. There is
only one server.conf file. Individual <arch> directories may have
their own client.conf files, or may symlink to ../conf/client.conf.
Note: it is still not clear to me if this script is currently used.
Feature safe: yes
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/cpdistfiles | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/cpdistfiles b/Tools/portbuild/scripts/cpdistfiles index 8b38c0b36501..08bfbc07a74f 100755 --- a/Tools/portbuild/scripts/cpdistfiles +++ b/Tools/portbuild/scripts/cpdistfiles @@ -7,6 +7,7 @@ fi # configurable variables pb=/var/portbuild +. ${pb}/conf/server.conf arch=$1 branch=$2 @@ -38,7 +39,11 @@ if [ -e ${distdir}/.pbtmp ]; then exit 1 fi -rsync ${dryrun} -r -v -l -t --exclude RESTRICTED/ ${builddir}/distfiles/ portmgr@ftp-master:w/ports/distfiles/ | tee ${log} +rsync ${dryrun} -r -v -l -t \ + --exclude RESTRICTED/ \ + ${builddir}/distfiles/ \ + ${UPLOAD_USER}@${UPLOAD_TARGET}:${UPLOAD_DIRECTORY} | \ + tee ${log} num=$(wc -l ${log} | awk '{print $1}') if [ "$yesreally" = "0" ]; then |