* libtoolize.m4sh (func_fixup_Makefile): `\\\\\$' in a " quoted
script that is evaluated twice before execution becomes a `\$',
which sed interprets as a literal $. The script will then delete
any lines with a first non-whitespace character of `$'. Instead
use `\\\\$' in single quotes, which sed eventually receives as
`\\$' and correctly interprets as part of an instruction to
delete otherwise empty lines ending with a `\'.
Additionally the rest of the same sed script is no longer
applied to comment lines to avoid munging the copyright header
among others.
* NEWS: Updated.
- Fix a long-standing latent bug in autom4te include path for autotests
with VPATH builds.
+ - Fix a long-standing latent bug in libtoolize which could delete lines
+ from libltdl/Makefile.am in recursive mode due to underquoting in a
+ sed script.
New in 2.4.2 2011-10-17: git version 2.4.1a, Libtool team:
my_filename="$1"
my_srcdir="$2"
my_destdir="$3"
- my_fixup_non_subpackage_script="\
+ my_fixup_non_subpackage_script='/^[^#]/{
s,(LIBOBJS),(ltdl_LIBOBJS),g
s,(LTLIBOBJS),(ltdl_LTLIBOBJS),g
s,libltdl/configure.ac,,
s,libltdl/config-h.in,,
s,libltdl/Makefile.am,,
s,libltdl/Makefile.in,,
- /^[ ]*\\\\\$/d"
+ /^[ ]*\\\\$/d
+ }'
case $my_filename in
Makefile.am)
my_fixup_non_subpackage_script=`echo "$my_fixup_non_subpackage_script" | \