diff options
author | Gary V. Vaughan <gary@gnu.org> | 2014-01-03 20:07:48 +1300 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2014-01-03 20:07:48 +1300 |
commit | da59d47a448f0a623c7f56632dbe8c3f864a450a (patch) | |
tree | 261f6170dd5e0f1ec748f6e642d6145f4a89e971 | |
parent | 9ef95183f0ae64d1cdbfeb68d3ad6ce37e6e9b97 (diff) | |
download | libtool-da59d47a448f0a623c7f56632dbe8c3f864a450a.tar.gz |
inline-source: gawk doesn't have boolean constants.
I've been writing a lot of Lua lately, but still a silly mistake:(
* gl/build-aux/inline-source (func_include): Use `magic` variable
to count #! lines found, and only output the DO NOT EDIT warning
after the first one.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
-rwxr-xr-x | gl/build-aux/inline-source | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gl/build-aux/inline-source b/gl/build-aux/inline-source index 54cce337..1e4772c7 100755 --- a/gl/build-aux/inline-source +++ b/gl/build-aux/inline-source @@ -124,13 +124,13 @@ func_include () test -n "$_G_scriptdir" || _G_scriptdir="./" $AWK ' - BEGIN { domagic = true; } + BEGIN { magic = 0; } - /^#!/ && domagic == true { + /^#!/ && magic == 0 { print $0; print "## DO NOT EDIT - This file generated from '$1'"; print "## by '$progname' v'$scriptversion'"; - domagic = false; + magic++; next; } |