diff options
author | cjep <cjep@pkgsrc.org> | 2002-12-31 12:42:37 +0000 |
---|---|---|
committer | cjep <cjep@pkgsrc.org> | 2002-12-31 12:42:37 +0000 |
commit | 6259f8a7b24a30d36141ac59ca04d542acd71cf0 (patch) | |
tree | f365cc193f980396b6c08cc0960976f79f327aaa /mk/bulk | |
parent | 73b26ebbbfcd5656900ff3ec4160d6d6311bc4c8 (diff) | |
download | pkgsrc-6259f8a7b24a30d36141ac59ca04d542acd71cf0.tar.gz |
If the pkg tools are not update, upgrade them.
Diffstat (limited to 'mk/bulk')
-rw-r--r-- | mk/bulk/build | 9 |
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 |