SF.net SVN: geany:[3348] trunk/scripts/svn-changes.sh

ntrel at users.sourceforge.net ntrel at xxxxx
Tue Dec 9 12:38:01 UTC 2008


Revision: 3348
          http://geany.svn.sourceforge.net/geany/?rev=3348&view=rev
Author:   ntrel
Date:     2008-12-09 12:38:00 +0000 (Tue, 09 Dec 2008)

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

Modified Paths:
--------------
    trunk/scripts/svn-changes.sh

Modified: trunk/scripts/svn-changes.sh
===================================================================
--- trunk/scripts/svn-changes.sh	2008-12-08 21:58:11 UTC (rev 3347)
+++ trunk/scripts/svn-changes.sh	2008-12-09 12:38:00 UTC (rev 3348)
@@ -12,6 +12,12 @@
 	shift
 fi
 
+# -q to not print warnings
+if [ "$1" = -q ]; then
+	QUIET="set"
+	shift
+fi
+
 status=`svn st $*`
 
 # get list of files changed.
@@ -40,6 +46,9 @@
 fi
 
 # warn about anything that isn't a modification or addition
+if [ -n "$QUIET" ]; then
+	exit
+fi
 warn=`echo "$status" |egrep '^[^MA]'`
 if [ -n "$warn" ]; then
 	echo 'Warnings:'


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list