pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/bulk Add LINTPKGSRC_CACHE support to reuse .lintpkg...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1450a8febe99
branches: trunk
changeset: 487780:1450a8febe99
user: tv <tv%pkgsrc.org@localhost>
date: Thu Jan 20 02:02:50 2005 +0000
description:
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:
mk/bulk/upload | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diffs (50 lines):
diff -r 4ae79dfea54f -r 1450a8febe99 mk/bulk/upload
--- a/mk/bulk/upload Thu Jan 20 00:44:34 2005 +0000
+++ b/mk/bulk/upload Thu Jan 20 02:02:50 2005 +0000
@@ -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 @@
. `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 @@
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"
Home |
Main Index |
Thread Index |
Old Index