pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files - Added an explanation for the ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ef79e77bb0d9
branches:  trunk
changeset: 503817:ef79e77bb0d9
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Nov 30 19:19:25 2005 +0000

description:
- Added an explanation for the warning about MKDIR => INSTALL_*_DIR.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r b0a7b7ab7661 -r ef79e77bb0d9 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Wed Nov 30 19:11:01 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Wed Nov 30 19:19:25 2005 +0000
@@ -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 @@
 
                        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\}([^&;|]*)") {



Home | Main Index | Thread Index | Old Index