]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* lib/compile, lib/elisp-comp, lib/install-sh, lib/ylwrap: Use $ret
authorAlexandre Duret-Lutz <adl@gnu.org>
Fri, 10 Sep 2004 18:47:08 +0000 (18:47 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Fri, 10 Sep 2004 18:47:08 +0000 (18:47 +0000)
instead of $status which is read-only in Zsh.

ChangeLog
lib/compile
lib/elisp-comp
lib/install-sh
lib/ylwrap

index 4115c319171c6144e8ae43cff45d25d3508cdfd3..e14e70b8d50550b828b9613d898edf8c6c847673 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-10  Alexandre Duret-Lutz  <adl@gnu.org>
+
+       * lib/compile, lib/elisp-comp, lib/install-sh, lib/ylwrap: Use $ret
+       instead of $status which is read-only in Zsh.
+
 2004-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
            Alexandre Duret-Lutz  <adl@gnu.org>
 
index e6084f46ed6bcc8678eae9e3ed26fa502f57531a..80b645b015f3cbee717fd38ca22e857c8cd70830 100755 (executable)
@@ -121,14 +121,14 @@ trap "rmdir '$lockdir'; exit 1" 1 2 15
 
 # Run the compile.
 "$@"
-status=$?
+ret=$?
 
 if test -f "$cofile"; then
   mv "$cofile" "$ofile"
 fi
 
 rmdir "$lockdir"
-exit $status
+exit $ret
 
 # Local Variables:
 # mode: shell-script
index 489ae83d7680fd406b548390c5d8b19197ac341e..7efb6f89ec279a4ceb15b7aefca870ce1ec94fab 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
-# Copyright (C) 1995, 2000, 2003  Free Software Foundation, Inc.
+# Copyright (C) 1995, 2000, 2003, 2004  Free Software Foundation, Inc.
 
-scriptversion=2003-11-08.23
+scriptversion=2004-09-10.20
 
 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 1995.
 #
@@ -64,7 +64,7 @@ fi
 tempdir=elc.$$
 
 # Cleanup the temporary directory on exit.
-trap 'status=$?; rm -rf "$tempdir" && exit $status' 0
+trap 'ret=$?; rm -rf "$tempdir" && exit $ret' 0
 trap '(exit $?); exit' 1 2 13 15
 
 mkdir $tempdir
index b777f1244cdff9ef72ec533e5d38448f01a3ddcc..dd97db7aa1cae9655149aad9d21c6cf42476c0da 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # install - install a program, script, or datafile
 
-scriptversion=2004-07-05.00
+scriptversion=2004-09-10.20
 
 # This originates from X11R5 (mit/util/scripts/install.sh), which was
 # later released in X11R6 (xc/config/util/install.sh) with the
@@ -260,7 +260,7 @@ do
     rmtmp=$dstdir/_rm.$$_
 
     # Trap to clean up those temp files at exit.
-    trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
+    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
     trap '(exit $?); exit' 1 2 13 15
 
     # Copy the file name to the temp name.
index f86e2173018b0a9ca3b1fe0b9027559853806827..e66a95b603fad3fba1924914158cac45ee3c8a00 100755 (executable)
@@ -1,9 +1,9 @@
 #! /bin/sh
 # ylwrap - wrapper for lex/yacc invocations.
 
-scriptversion=2003-11-18.20
+scriptversion=2004-09-10.20
 
-# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003
+# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004
 #   Free Software Foundation, Inc.
 #
 # Written by Tom Tromey <tromey@cygnus.com>.
@@ -109,9 +109,9 @@ case $# in
   0) $prog "$input" ;;
   *) $prog "$@" "$input" ;;
 esac
-status=$?
+ret=$?
 
-if test $status -eq 0; then
+if test $ret -eq 0; then
   set X $pairlist
   shift
   first=yes
@@ -177,7 +177,7 @@ if test $status -eq 0; then
             -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`
 
       sed -e "/^#/!b" -e "s,$input_rx,," -e "s,$from,$2," \
-          -e "s,$FROM,$TARGET," "$from" >"$target" || status=$?
+          -e "s,$FROM,$TARGET," "$from" >"$target" || ret=$?
 
       # Check whether header files must be updated.
       if test $first = no; then
@@ -195,7 +195,7 @@ if test $status -eq 0; then
       # is not specified, we don't want an error when the header
       # file is "missing".
       if test $first = yes; then
-        status=1
+        ret=1
       fi
     fi
     shift
@@ -203,14 +203,14 @@ if test $status -eq 0; then
     first=no
   done
 else
-  status=$?
+  ret=$?
 fi
 
 # Remove the directory.
 cd ..
 rm -rf $dirname
 
-exit $status
+exit $ret
 
 # Local Variables:
 # mode: shell-script