inside { } in sed scripts, as Posix says it's not portable.
* ltmain.in (func_win32_libid): Likewise.
* mailnotify, commit: Likewise.
Noted by Paul Eggert <eggert@cs.ucla.edu>.
2006-01-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * libtool.m4 (_LT_AC_SYS_LIBPATH_AIX): Don't use semicolons
+ inside { } in sed scripts, as Posix says it's not portable.
+ * ltmain.in (func_win32_libid): Likewise.
+ * mailnotify, commit: Likewise.
+ Noted by Paul Eggert <eggert@cs.ucla.edu>.
+
* ltmain.in (compile mode): Also transform `.obj' correctly.
Reported by George Bosilca <bosilca@cs.utk.edu>.
func_usage ()
{
$SED '/^# Usage:/,/# -h/ {
- s/^# //; s/^# *$//;
- s/\$progname/'$progname'/;
- p;
+ s/^# //
+ s/^# *$//
+ s/\$progname/'$progname'/
+ p
}; d' < "$progpath"
echo
echo "run \`$progname --help | more' for full usage"
func_help ()
{
$SED '/^# Usage:/,/# Report bugs to/ {
- s/^# //; s/^# *$//;
- s/\$progname/'$progname'/;
- p;
+ s/^# //
+ s/^# *$//
+ s/\$progname/'$progname'/
+ p
}; d' < "$progpath"
exit $EXIT_SUCCESS
}
func_version ()
{
$SED '/^# '$PROGRAM' (GNU /,/# warranty; / {
- s/^# //; s/^# *$//;
- s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/;
- p;
+ s/^# //
+ s/^# *$//
+ s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
+ p
}; d' < "$progpath"
exit $EXIT_SUCCESS
}
# to the aix ld manual.
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`; fi],[])
+if test -z "$aix_libpath"; then
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+fi],[])
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
])# _LT_AC_SYS_LIBPATH_AIX
if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
$EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
win32_nmres=`eval $NM -f posix -A $1 | \
- $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
+ $SED -n -e '1,100{
+ / I /{
+ s,.*,import,
+ p
+ q
+ }
+ }'`
case $win32_nmres in
import*) win32_libid_type="x86 archive import";;
*) win32_libid_type="x86 archive static";;
func_usage ()
{
$SED '/^# Usage:/,/# -h/ {
- s/^# //; s/^# *$//;
- s/\$progname/'$progname'/;
- p;
+ s/^# //
+ s/^# *$//
+ s/\$progname/'$progname'/
+ p
}; d' < "$progpath"
echo
echo "run \`$progname --help | more' for full usage"
func_help ()
{
$SED '/^# Usage:/,/# Report bugs to/ {
- s/^# //; s/^# *$//;
- s/\$progname/'$progname'/;
- p;
+ s/^# //
+ s/^# *$//
+ s/\$progname/'$progname'/
+ p
}; d' < "$progpath"
exit $EXIT_SUCCESS
}
func_version ()
{
$SED '/^# '$PROGRAM' (GNU /,/# warranty; / {
- s/^# //; s/^# *$//;
- s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/;
- p;
+ s/^# //
+ s/^# *$//
+ s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
+ p
}; d' < "$progpath"
exit $EXIT_SUCCESS
}
{
my_outfile="$1"
my_destination="$2"
- my_sed_version_no='/^# '$PROGRAM' (GNU / { s/^# .*version //; p; }; d'
+ my_sed_version_no='/^# '$PROGRAM' (GNU / {
+ s/^# .*version //
+ p
+ }; d'
{
echo "User-Agent: $PROGRAM/`$SED \"$my_sed_version_no\" < $progpath`"