diff options
author | hubertf <hubertf> | 2001-06-23 23:27:18 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2001-06-23 23:27:18 +0000 |
commit | 3c5bd91a9463849ba5fc46c91fccb82c3b462062 (patch) | |
tree | 541469ba84d992ad0a0e985c925bcffdb1914d90 /mk/bulk | |
parent | 0d46fc78c2459030d5ce690d2a875f86b8da2375 (diff) | |
download | pkgsrc-3c5bd91a9463849ba5fc46c91fccb82c3b462062.tar.gz |
Add a script that I use to upload binary pkgs to the FTP server
Diffstat (limited to 'mk/bulk')
-rw-r--r-- | mk/bulk/build.conf-example | 6 | ||||
-rw-r--r-- | mk/bulk/upload | 31 |
2 files changed, 36 insertions, 1 deletions
diff --git a/mk/bulk/build.conf-example b/mk/bulk/build.conf-example index 6296efae3a4..d0681ea90f6 100644 --- a/mk/bulk/build.conf-example +++ b/mk/bulk/build.conf-example @@ -1,5 +1,5 @@ # build.conf -# $NetBSD: build.conf-example,v 1.8 2001/03/19 11:25:39 dmcmahill Exp $ +# $NetBSD: build.conf-example,v 1.9 2001/06/23 23:27:18 hubertf Exp $ # # config file in /bin/sh syntax for {,pre,post}-build # @@ -37,6 +37,10 @@ PRUNEDISTFILES=yes #ftp_proxy=http://proxy.machi.ne:3128/ #http_proxy=http://proxy.machi.ne:3128/ +# Uploading binary packages: +RSYNC_DST=$CVS_USR@ftp.netbsd.org:/pub/NetBSD/packages/x.y/arch +RSYNC_OPTS='-e ssh' + ########################################################################### ### No changes should be needed below this line !!! ########################################################################### diff --git a/mk/bulk/upload b/mk/bulk/upload new file mode 100644 index 00000000000..154f51222f9 --- /dev/null +++ b/mk/bulk/upload @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Upload non-restricted binary pkgs to ftp server +# Must be called in /usr/pkgsrc +# + +# Pull in RSYNC_DST, RSYNC_OPTS: +if [ -f "$BULK_BUILD_CONF" ]; then + . $BULK_BUILD_CONF +else + . `dirname $0`/build.conf +fi + +# May be different than $USR_PKGSRC: +pkgsrcdir=`cd pkgtools/pkglint ; make show-var VARNAME=PKGSRCDIR` +packages=`cd pkgtools/pkglint ; make show-var VARNAME=PACKAGES` + +# Pull in some pkgs needed +( cd pkgtools/pkglint ; make bulk-install ) +( cd net/rsync ; make bulk-install ) + +lintpkgsrc -P $pkgsrcdir -pR | sed 's@'$packages'/@@' > /tmp/r.$$ + +cd $packages +rsync \ + -vap \ + $RSYNC_OPTS \ + --exclude-from=/tmp/r.$$ \ + . $RSYNC_DST + +rm /tmp/r.$$ |