summaryrefslogtreecommitdiff
path: root/mk/bulk/upload
blob: 154f51222f9fe0512b744913376492dfdba541d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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.$$