summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-03-31 22:42:35 +0200
committerJim Meyering <meyering@redhat.com>2008-03-31 22:42:35 +0200
commit94251ff0840563d0a5668fdc4f0683195a7d875e (patch)
tree4a77faa3fa3ef57d5c044e55cb91fb4b98c1ed7e
parent1a0104fc63be891a31493f6d811528ee53b624d0 (diff)
downloadcoreutils-94251ff0840563d0a5668fdc4f0683195a7d875e.tar.xz
Emit "#line 1" right after the two 'read-only/GENERATED' lines.
* bootstrap (cp_mark_as_generated): This preserves line numbering e.g., in assertions, which is important when correlating between coreutils test failures and the original files in gnulib/tests. Suggested by Eric Blake.
-rwxr-xr-xbootstrap1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 9c932ee9e..c1ed9e505 100755
--- a/bootstrap
+++ b/bootstrap
@@ -394,6 +394,7 @@ cp_mark_as_generated()
(
echo "$c1-*- buffer-read-only: t -*- vi: set ro:$c2" &&
echo "${c1}DO NOT EDIT! GENERATED AUTOMATICALLY!$c2" &&
+ echo '#line 1' &&
sed "s!$bt_regex/!!g" "$cp_src"
) > $cp_dst-t &&
if cmp -s "$cp_dst-t" "$cp_dst"; then