From: Perl 5 Porters Date: Sat, 7 Sep 1996 02:38:34 +0000 (+0000) Subject: perl 5.003_05: makedepend.SH X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2d9864fedb1b306ba5d850c407606a1466c433e1;p=p5sagit%2Fp5-mst-13.2.git perl 5.003_05: makedepend.SH This patch eliminates "\|" in sed patterns in makedepend.SH, since they're not really needed anyway in this one case. --- diff --git a/makedepend.SH b/makedepend.SH index 81d49db..336d24c 100755 --- a/makedepend.SH +++ b/makedepend.SH @@ -60,12 +60,12 @@ fi mf=$firstmakefile if test -f $mf; then defrule=`<$mf sed -n \ - -e '/^\.c\(\$(OBJ_EXT)\|\.o\):.*;/{' \ + -e '/^\.c\$(OBJ_EXT):.*;/{' \ -e 's/\$\*\.c//' \ -e 's/^[^;]*;[ ]*//p' \ -e q \ -e '}' \ - -e '/^\.c\(\$(OBJ_EXT)\|\.o\): *$/{' \ + -e '/^\.c\$(OBJ_EXT): *$/{' \ -e N \ -e 's/\$\*\.c//' \ -e 's/^.*\n[ ]*//p' \ @@ -137,7 +137,7 @@ if $test -s .deptmp; then $echo "Updating $mf..." $echo "# If this runs make out of memory, delete /usr/include lines." \ >> $mf.new - $sed 's|^\(.*\(\$(OBJ_EXT)\|\.o\):\) *\(.*/.*\.c\) *$|\1 \3; '"$defrule \2|" .deptmp \ + $sed 's|^\(.*\$(OBJ_EXT):\) *\(.*/.*\.c\) *$|\1 \2; '"$defrule \2|" .deptmp \ >>$mf.new else $MAKE hlist || ($echo "Searching for .h files..."; \