]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
print list of locally modified files to stderr
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Wed, 20 Jan 1999 22:06:09 +0000 (22:06 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 20 Jan 1999 22:06:09 +0000 (22:06 +0000)
commit

diff --git a/commit b/commit
index 40a1dd4d31f26772191471559b85406ff39ac278..9c5b6aa202f06e1894764d0407d5493a82477b9d 100755 (executable)
--- a/commit
+++ b/commit
@@ -25,11 +25,14 @@ elif test $# -gt 1 && test x"$1" = x"-F"; then
 fi
 
 echo "Checking whether repository is up to date..." >&2
-commit=`cvs $cvsopt stat ${1+"$@"} 2>/dev/null | grep Status \
-        | egrep -v '(Up-to-date|Locally )'`
-
-if test -n "$commit"; then
-  echo "$commit"
+if cvs $cvsopt stat ${1+"$@"} 2>/dev/null | grep Status \
+   | while read line; do
+       case "$line" in
+       *"Up-to-date") :;;
+       *"Locally Modified") echo "$line" >&2;;
+       *) echo "$line";;
+       esac
+     done | grep .; then
   exit 1
 fi