Makefile.PL: add message about custom parameters
authorTorsten Maehne <Torsten.Maehne@gmx.de>
Tue, 28 Aug 2012 07:51:47 +0000 (09:51 +0200)
committerPhilipp A. Hartmann <philipp.hartmann@offis.de>
Tue, 28 Aug 2012 16:49:08 +0000 (18:49 +0200)
Since adding custom parameters to Makefile.PL scripts is not
transparently supported by MakeMaker, recent versions print a
note about unknown options given to the script.

Nevertheless, such parameters are handled correctly and are
passed through to a reinvocation in case of a changed Makefile.PL.
A message is printed to inform the user about this fact.

Signed-off-by: Philipp A. Hartmann <philipp.hartmann@offis.de>
Makefile.PL

index 97bab604ddc92f155f7ea3c83d500fd28662acc2..baef72a9a61c00c283aeb05c8410ed3bcc40ea95 100755 (executable)
@@ -9,6 +9,14 @@ my $PERL_SHEBANG   = $args{PERL_SHEBANG} || "" ;
 my $TAR_PROGRAM    = $args{TAR_PROGRAM} || "" ;
 my $XDELTA_PROGRAM = $args{XDELTA_PROGRAM} || "" ;
 
+if ($PERL_SHEBANG || $TAR_PROGRAM || $XDELTA_PROGRAM) {
+  print <<EOF;
+Info: MakeMaker may warn about the custom parameters 'PERL_SHEBANG',
+      'TAR_PROGRAM', and 'XDELTA_PROGRAM', which are anyway correctly
+      handled for generating the Makefile.
+EOF
+}
+
 package MY;
 
 sub macro {