summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2005-09-02 10:11:24 +0000
committerrillig <rillig>2005-09-02 10:11:24 +0000
commit99796139d00d22364d9eb62940f4ce47b83ddcdd (patch)
tree730c47e83fcc1b85ca3b9675dd7291584a201011 /pkgtools
parent5f75b9144c0526e730415755b9e71cfeb3325565 (diff)
downloadpkgsrc-99796139d00d22364d9eb62940f4ce47b83ddcdd.tar.gz
The PKGDIR variable is extracted from the Makefile first, because other
variables like PATCHDIR and DISTINFO_FILE depend on it.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl13
1 files changed, 6 insertions, 7 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index ff8a1382efa..e0c8d425496 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -11,7 +11,7 @@
# Freely redistributable. Absolutely no warranty.
#
# From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.265 2005/09/02 01:03:20 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.266 2005/09/02 10:11:24 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -1403,16 +1403,15 @@ sub load_package_Makefile($$$$) {
}
}
- $distinfo_file = expand_variable($whole, "DISTINFO_FILE");
- $filesdir = expand_variable($whole, "FILESDIR");
- $patchdir = expand_variable($whole, "PATCHDIR");
$pkgdir = expand_variable($whole, "PKGDIR");
- $scriptdir = expand_variable($whole, "SCRIPTDIR");
-
+ set_default_value(\$pkgdir, ".");
+ $distinfo_file = expand_variable($whole, "DISTINFO_FILE");
set_default_value(\$distinfo_file, "distinfo");
+ $filesdir = expand_variable($whole, "FILESDIR");
set_default_value(\$filesdir, "files");
+ $patchdir = expand_variable($whole, "PATCHDIR");
set_default_value(\$patchdir, "patches");
- set_default_value(\$pkgdir, ".");
+ $scriptdir = expand_variable($whole, "SCRIPTDIR");
set_default_value(\$scriptdir, "scripts");
log_subinfo($subr, NO_FILE, NO_LINE_NUMBER, "DISTINFO_FILE=$distinfo_file");