From 9ce7b67d63442f020d647e8a6a3fadc70d574022 Mon Sep 17 00:00:00 2001 From: rillig Date: Wed, 30 Nov 2005 19:19:25 +0000 Subject: - Added an explanation for the warning about MKDIR => INSTALL_*_DIR. --- pkgtools/pkglint/files/pkglint.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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\}([^&;|]*)") { -- cgit v1.2.3