]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* commit: Diagnose non-existant files named on the command line
authorGary V. Vaughan <gary@gnu.org>
Thu, 21 Jan 1999 17:48:34 +0000 (17:48 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 21 Jan 1999 17:48:34 +0000 (17:48 +0000)
* commit: Transposition typo re: opt && arg variables in argument
processing case.

commit

diff --git a/commit b/commit
index 100f25e4dc4299f5b6fc16c4753697afd0a355d0..7ca48bb2ca34cde376d1d2a69c57fecee097cfa3 100755 (executable)
--- a/commit
+++ b/commit
@@ -117,16 +117,16 @@ while $repeat; do
        shift
        ;;
     -m*|-F*|-z*)
-       arg=`echo "$1" | sed '1s/^\(..\).*$/\1/;q'`
-       opt=`echo "$1" | sed '1s/^-m//'`
+       opt=`echo "$1" | sed '1s/^\(..\).*$/\1/;q'`
+       arg=`echo "$1" | sed '1s/^-[a-zA-Z0-9]//'`
        shift
-       set -- "$arg" "$opt" ${1+"$@"}
+       set -- "$opt" "$arg" ${1+"$@"}
        ;;
     --message=*|--msg=*|--file=*|--compress=*)
        opt=`echo "$1" | sed '1s/^\(--[^=]*\)=.*/\1/;q'`
        arg=`echo "$1" | sed '1s/^--[^=]*=//'`
        shift
-       set -- "$arg" "$opt" ${1+"$@"}
+       set -- "$opt" "$arg" ${1+"$@"}
        ;;
     -v|--version)
        sed '/^# '$name' version /,/^# Heavily modified by/ { s/^# //; p; }; d' < $0
@@ -160,6 +160,7 @@ if cvs $cvsopt stat $statopt ${1+"$@"} 2>/dev/null | grep Status \
        "Locally Modified") echo "M $file" >&2;;
        "Locally Added") echo "A $file" >&2;;
        "Locally Removed") echo "R $file" >&2;;
+       *Status:*Unknown) echo "? $rest"; echo "? $rest" >&2;;
        *) echo "C $file"; echo "C $file" >&2;;
        esac
      done | grep . >/dev/null; then