summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig>2005-11-30 19:19:25 +0000
committerrillig <rillig>2005-11-30 19:19:25 +0000
commit9ce7b67d63442f020d647e8a6a3fadc70d574022 (patch)
treeac80febe6329c5528dcf29e9d809bc64e5ace101
parentf6977514a40dac5ef276fcd3b8823515eacf5ce0 (diff)
downloadpkgsrc-9ce7b67d63442f020d647e8a6a3fadc70d574022.tar.gz
- Added an explanation for the warning about MKDIR => INSTALL_*_DIR.
-rw-r--r--pkgtools/pkglint/files/pkglint.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 30c5e95d8c5..e66684c2e27 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.391 2005/11/28 00:33:55 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.392 2005/11/30 19:19:25 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -2574,6 +2574,9 @@ sub checklines_package_Makefile($) {
if ($shellcmd =~ qr"\$\{MKDIR\}[^&;|]*\$\{PREFIX\}/[/0-9a-zA-Z\${}]*") {
$line->log_warning("Please use one of the INSTALL_*_DIR commands instead of MKDIR.");
+ $line->explain(
+ "Choose one of INSTALL_PROGRAM_DIR, INSTALL_SCRIPT_DIR, INSTALL_LIB_DIR,",
+ "INSTALL_DATA_DIR, INSTALL_MAN_DIR.");
}
if ($shellcmd =~ qr"\$\{INSTALL\}([^&;|]*)") {