This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
572224c
)
makedepend.SH: Make compiler errors show correct line number
author
Karl Williamson
<public@khwilliamson.com>
Sat, 23 Feb 2013 22:34:05 +0000
(15:34 -0700)
committer
Karl Williamson
<public@khwilliamson.com>
Mon, 25 Feb 2013 03:20:40 +0000
(20:20 -0700)
Instead of inserting "#line 1", insert "#line 2" to account for the
inserted line.
Spotted by John Goodyear.
makedepend.SH
patch
|
blob
|
blame
|
history
diff --git
a/makedepend.SH
b/makedepend.SH
index
445ccfa
..
f06a483
100755
(executable)
--- a/
makedepend.SH
+++ b/
makedepend.SH
@@
-131,7
+131,7
@@
for file in `$cat .clist`; do
*) finc= ;;
esac
$echo "Finding dependencies for $filebase$_o."
- ( $echo "#line
1
\"$file\""; \
+ ( $echo "#line
2
\"$file\""; \
$sed -n <$file \
-e "/^${filebase}_init(/q" \
-e '/^#line/d' \