From: Rainer Orth Date: Wed, 20 Jan 1999 22:06:09 +0000 (+0000) Subject: print list of locally modified files to stderr X-Git-Tag: ild-branchpoint~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f42bb6c21faea924e3ff6e028a5db712091d4413;p=thirdparty%2Flibtool.git print list of locally modified files to stderr --- diff --git a/commit b/commit index 40a1dd4d3..9c5b6aa20 100755 --- 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