diff options
author | tv <tv@pkgsrc.org> | 2005-01-20 02:02:50 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-01-20 02:02:50 +0000 |
commit | 913dfa54a288d46c74c173dcf49aadf168239b1e (patch) | |
tree | ed02997fa7be53cfdf3d727c2065a80c616e0b0b /mk/bulk | |
parent | 64a9a294ea6314c6a85e9b8526b4a040168eb2a3 (diff) | |
download | pkgsrc-913dfa54a288d46c74c173dcf49aadf168239b1e.tar.gz |
Add LINTPKGSRC_CACHE support to reuse .lintpkgsrc.db created by pre-build.
"cd" to $USR_PKGSRC automagically so this can be called from any dir.
Diffstat (limited to 'mk/bulk')
-rw-r--r-- | mk/bulk/upload | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/mk/bulk/upload b/mk/bulk/upload index d31b3918640..a94a1001db5 100644 --- a/mk/bulk/upload +++ b/mk/bulk/upload @@ -1,9 +1,8 @@ #!/bin/sh -# $NetBSD: upload,v 1.18 2004/04/19 18:39:09 hubertf Exp $ +# $NetBSD: upload,v 1.19 2005/01/20 02:02:50 tv Exp $ # # Upload non-restricted binary pkgs to ftp server -# Must be called in $USR_PKGSRC # opsys=`uname -s` @@ -26,6 +25,8 @@ else . `dirname $0`/build.conf fi +cd $USR_PKGSRC + if [ "$RSYNC_DST_SPECIFIC" != "" -o "$RSYNC_DST_OTHER" != "" ]; then echo Use of RSYNC_DST_SPECIFIC and RSYNC_DST_OTHER is deprecated. echo Please just set RSYNC_DST in build.conf. @@ -74,15 +75,23 @@ else echo '(skipped)' fi +case $LINTPKGSRC_CACHE in +yes|YES) + lintpkgsrc_cache="-I `cd pkgtools/pkglint ; ${BMAKE} show-var VARNAME=LINTPKGSRC_DB`" + ;; +*) + lintpkgsrc_cache='' + ;; +esac + echo "Checking for restricted, out of date, and vulnerable packages:" # -p = report old versions of packages # -R = report restricted packages # -V = report vulnerable packages -lintpkgsrc -K $packages -P $pkgsrcdir -pRV | sed 's@'$packages'/@@' > $exf +lintpkgsrc $lintpkgsrc_cache -K $packages -P $pkgsrcdir -pRV | sed 's@'$packages'/@@' > $exf echo "Checking for OSVERSION_SPECIFIC pkgs:" -lintpkgsrc -K $packages -P $pkgsrcdir -O | sed 's@'$packages'/@@' > $osf - +lintpkgsrc $lintpkgsrc_cache -K $packages -P $pkgsrcdir -O | sed 's@'$packages'/@@' > $osf RSFLAGS="-vap --progress $RSYNC_OPTS" |