Emit "#line 1" right after the two 'read-only/GENERATED' lines.
authorJim Meyering <meyering@redhat.com>
Mon, 31 Mar 2008 20:42:35 +0000 (22:42 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 31 Mar 2008 20:42:35 +0000 (22:42 +0200)
* 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.

bootstrap

index 9c932ee..c1ed9e5 100755 (executable)
--- 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