]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (--fallback-echo): Do not put an inline document and
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 8 Apr 1999 00:47:59 +0000 (00:47 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 8 Apr 1999 00:47:59 +0000 (00:47 +0000)
an exec in the same if construct; otherwise the inline document
may not be removed.
* ltmain.in (--fallback-echo): Likewise.
Reported by John David Anglin <dave.anglin@nrc.ca>

ChangeLog
ltconfig.in
ltmain.in

index e24393813d9ec11723ca54f4df05eeca6ec7b01a..bf076030542aa62edf9a41cd24afe39dd36c5f0a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 1999-04-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * ltconfig.in (--fallback-echo): Do not put an inline document and
+       an exec in the same if construct; otherwise the inline document
+       may not be removed.
+       * ltmain.in (--fallback-echo): Likewise.
+       Reported by John David Anglin <dave.anglin@nrc.ca>
+
        * dryrun.test: It would still fail at random times, because `cp'
        and `mv' are not guaranteed to preserve the timestamps of the
        installed files.  Instead of preserving them, just remove them
index fd7031d9adec57cb0eeecfc6b5ad7f7d37cd7a3c..45a5c07e534d2a7b1f8886e9495f54daf4a69885 100755 (executable)
@@ -32,12 +32,8 @@ if test "X$1" = X--no-reexec; then
   # Discard the --no-reexec flag, and continue.
   shift
 elif test "X$1" = X--fallback-echo; then
-  # used as fallback echo
-  shift
-  cat <<EOF
-$*
-EOF
-  exit 0
+  # Avoid inline document here, it may be left over
+  :
 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
   # Yippee, $echo works!
   :
@@ -46,6 +42,15 @@ else
   exec "$SHELL" "$0" --no-reexec ${1+"$@"}
 fi
 
+if test "X$1" = X--fallback-echo; then
+  # used as fallback echo
+  shift
+  cat <<EOF
+$*
+EOF
+  exit 0
+fi
+
 # Find the correct PATH separator.  Usually this is `:', but
 # DJGPP uses `;' like DOS.
 if test "X${PATH_SEPARATOR+set}" != "Xset"; then
index dc46bb9070df3f47ab7e290fd9107e7b01358ea3..9f5f7e55c90ee4c66b172413dda2c7aa5062fba7 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -28,12 +28,8 @@ if test "X$1" = X--no-reexec; then
   # Discard the --no-reexec flag, and continue.
   shift
 elif test "X$1" = X--fallback-echo; then
-  # used as fallback echo
-  shift
-  cat <<EOF
-$*
-EOF
-  exit 0
+  # Avoid inline document here, it may be left over
+  :
 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
   # Yippee, $echo works!
   :
@@ -42,6 +38,15 @@ else
   exec $SHELL "$0" --no-reexec ${1+"$@"}
 fi
 
+if test "X$1" = X--fallback-echo; then
+  # used as fallback echo
+  shift
+  cat <<EOF
+$*
+EOF
+  exit 0
+fi
+
 # The name of this program.
 progname=`$echo "$0" | sed 's%^.*/%%'`
 modename="$progname"