summaryrefslogtreecommitdiff
path: root/makedepend.SH
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-09-07 02:38:34 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-09-07 02:38:34 +0000
commit2d9864fedb1b306ba5d850c407606a1466c433e1 (patch)
tree3d8426875e5600e460102a92cff8cbb56c6efe32 /makedepend.SH
parent8e4ea0b466a4933c45646f1d6fefe96c799d2a72 (diff)
downloadperl-2d9864fedb1b306ba5d850c407606a1466c433e1.tar.gz
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.
Diffstat (limited to 'makedepend.SH')
-rwxr-xr-xmakedepend.SH6
1 files changed, 3 insertions, 3 deletions
diff --git a/makedepend.SH b/makedepend.SH
index 81d49db5bf..336d24cdbd 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..."; \