diff options
author | hubertf <hubertf@pkgsrc.org> | 2001-06-23 23:27:18 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2001-06-23 23:27:18 +0000 |
commit | 81cdec4cf4c59c8a5d1a8e6d2c00b000ea46b233 (patch) | |
tree | 541469ba84d992ad0a0e985c925bcffdb1914d90 | |
parent | f36eaf05d50d51b23e48b04a2922e34db45dd9c6 (diff) | |
download | pkgsrc-81cdec4cf4c59c8a5d1a8e6d2c00b000ea46b233.tar.gz |
Add a script that I use to upload binary pkgs to the FTP server
-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.$$ |