Add -q quiet option to not print warnings. (Must be first argument).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3348 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2008-12-09 12:38:00 +00:00
parent 73aa9138da
commit ec20664068

View File

@ -12,6 +12,12 @@ if [ "$1" = -s ]; then
shift shift
fi fi
# -q to not print warnings
if [ "$1" = -q ]; then
QUIET="set"
shift
fi
status=`svn st $*` status=`svn st $*`
# get list of files changed. # get list of files changed.
@ -40,6 +46,9 @@ else
fi fi
# warn about anything that isn't a modification or addition # warn about anything that isn't a modification or addition
if [ -n "$QUIET" ]; then
exit
fi
warn=`echo "$status" |egrep '^[^MA]'` warn=`echo "$status" |egrep '^[^MA]'`
if [ -n "$warn" ]; then if [ -n "$warn" ]; then
echo 'Warnings:' echo 'Warnings:'