summaryrefslogtreecommitdiff
path: root/pat/patmake.SH
diff options
context:
space:
mode:
Diffstat (limited to 'pat/patmake.SH')
-rwxr-xr-x[-rw-r--r--]pat/patmake.SH16
1 files changed, 7 insertions, 9 deletions
diff --git a/pat/patmake.SH b/pat/patmake.SH
index c85f729..3d476f1 100644..100755
--- a/pat/patmake.SH
+++ b/pat/patmake.SH
@@ -20,15 +20,15 @@ $startperl
eval "exec perl -S \$0 \$*"
if \$running_under_some_shell;
-# $Id: patmake.SH,v 3.0.1.5 1995/09/25 09:21:19 ram Exp $
+# $Id$
#
-# Copyright (c) 1991-1993, Raphael Manfredi
+# Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
#
# You may redistribute only under the terms of the Artistic Licence,
# as specified in the README file that comes with the distribution.
# You may reuse parts of this distribution only within the terms of
# that same Artistic Licence; a copy of which may be found at the root
-# of the source tree for dist 3.0.
+# of the source tree for dist 4.0.
#
# Original Author: Larry Wall <lwall@netlabs.com>
# Contribution by: Graham Stoney <greyham@research.canon.oz.au>
@@ -107,15 +107,13 @@ if ($#ARGV > 0) {
$mf .= $_ if /^[a-z.]+\s*:/; # Rules in makefile
}
}
-$* = 1;
$after = '';
$after .= "\t\tConfigure -ders\n" if -f 'Configure';
-$after .= "\t\tmake depend\n" if $mf =~ /^depend:/;
+$after .= "\t\tmake depend\n" if $mf =~ /^depend:/m;
$after .= "\t\tmake\n" if $mf;
-$after .= "\t\tmake test\n" if $mf =~ /^test:/;
-$after .= "\t\tmake install\n" if $mf =~ /^install:/;
-$after .= "\t\tmake install.man\n" if $mf =~ /^install\.man:/;
-$* = 0;
+$after .= "\t\tmake test\n" if $mf =~ /^test:/m;
+$after .= "\t\tmake install\n" if $mf =~ /^install:/m;
+$after .= "\t\tmake install.man\n" if $mf =~ /^install\.man:/m;
chdir 'bugs' if -d 'bugs';
die "$progname: patch #$bnum already exists.\n" if -f "patch$bnum";