summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorcjep <cjep>2002-12-31 12:42:37 +0000
committercjep <cjep>2002-12-31 12:42:37 +0000
commitbc7f28679aa1162b9729476b0600df5ca3ca0c2e (patch)
treef365cc193f980396b6c08cc0960976f79f327aaa /mk
parent66a71f114230fb1990a981333e730667b8f1c92b (diff)
downloadpkgsrc-bc7f28679aa1162b9729476b0600df5ca3ca0c2e.tar.gz
If the pkg tools are not update, upgrade them.
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/build9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/bulk/build b/mk/bulk/build
index fac39fca92a..f8e48eaac2a 100644
--- a/mk/bulk/build
+++ b/mk/bulk/build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: build,v 1.26 2002/12/01 05:53:43 dmcmahill Exp $
+# $NetBSD: build,v 1.27 2002/12/31 12:42:37 cjep Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@netbsd.org>
@@ -80,6 +80,13 @@ echo ""
unset DISPLAY # allow sane failure for gimp, xlispstat
+# Check that the pkg_tools are up to date
+(cd ${USR_PKGSRC}/pkgtools/pkglint && \
+ ${BMAKE} uptodate-pkgtools >/dev/null 2>&1) || \
+ ( echo "Updating pkgtools" && \
+ cd ${USR_PKGSRC}/pkgtools/pkg_install && ${BMAKE} clean && \
+ ${BMAKE} install && ${BMAKE} clean )
+
cd ${USR_PKGSRC}
if [ "$1" = "restart" ]; then