summaryrefslogtreecommitdiff
path: root/makedepend.SH
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-02-23 15:34:05 -0700
committerKarl Williamson <public@khwilliamson.com>2013-02-24 20:20:40 -0700
commitd43a05a2e46d18adf962d6885a6fce7c85e305a6 (patch)
treedb2fc61f382681a7aafe0d6f1316e03de9a8578d /makedepend.SH
parent572224ce94992fbe6a12bf2ed576193649b15d48 (diff)
downloadperl-d43a05a2e46d18adf962d6885a6fce7c85e305a6.tar.gz
makedepend.SH: Make compiler errors show correct line number
Instead of inserting "#line 1", insert "#line 2" to account for the inserted line. Spotted by John Goodyear.
Diffstat (limited to 'makedepend.SH')
-rwxr-xr-xmakedepend.SH2
1 files changed, 1 insertions, 1 deletions
diff --git a/makedepend.SH b/makedepend.SH
index 445ccfa667..f06a483417 100755
--- 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' \