diff options
author | Jim Meyering <meyering@redhat.com> | 2008-03-31 22:42:35 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-03-31 22:42:35 +0200 |
commit | 94251ff0840563d0a5668fdc4f0683195a7d875e (patch) | |
tree | 4a77faa3fa3ef57d5c044e55cb91fb4b98c1ed7e | |
parent | 1a0104fc63be891a31493f6d811528ee53b624d0 (diff) | |
download | coreutils-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-x | bootstrap | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |