pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/bulk - Removed the redundant check on USR_PKGSRC.
details: https://anonhg.NetBSD.org/pkgsrc/rev/3e2b874375cc
branches: trunk
changeset: 502786:3e2b874375cc
user: rillig <rillig%pkgsrc.org@localhost>
date: Tue Nov 08 21:57:59 2005 +0000
description:
- Removed the redundant check on USR_PKGSRC.
- Removed the singleton variable pkg_install_dir.
diffstat:
mk/bulk/build | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diffs (35 lines):
diff -r dfa105686eb0 -r 3e2b874375cc mk/bulk/build
--- a/mk/bulk/build Tue Nov 08 21:57:53 2005 +0000
+++ b/mk/bulk/build Tue Nov 08 21:57:59 2005 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: build,v 1.70 2005/11/06 17:12:55 rillig Exp $
+# $NetBSD: build,v 1.71 2005/11/08 21:57:59 rillig Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf%NetBSD.org@localhost>
@@ -186,14 +186,9 @@
} || die "Cannot load config file ${BULK_BUILD_CONF}, aborting."
#
-# Check if a valid pkgsrc root directory is given.
+# Set the paths to commonly used directories.
#
-case ${USR_PKGSRC-""} in
-/*) ;;
-*) die "USR_PKGSRC must be set to an absolute pathname.";;
-esac
pkgsrc_dir="${USR_PKGSRC}"
-pkg_install_dir="${USR_PKGSRC}/pkgtools/pkg_install"
pkglint_dir="${USR_PKGSRC}/pkgtools/pkglint"
#
@@ -224,7 +219,7 @@
&& ${BMAKE} fetch >/dev/null 2>&1
) || {
echo "Updating pkgtools"
- ( cd "${pkg_install_dir}" \
+ ( cd "${pkgsrc_dir}/pkgtools/pkg_install" \
&& ${BMAKE} clean \
&& ${BMAKE} install \
&& ${BMAKE} clean
Home |
Main Index |
Thread Index |
Old Index