[CalendarServer-changes] [4908] CalendarServer/trunk/support/submit
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jan 6 13:13:59 PST 2010
Revision: 4908
http://trac.macosforge.org/projects/calendarserver/changeset/4908
Author: wsanchez at apple.com
Date: 2010-01-06 13:13:58 -0800 (Wed, 06 Jan 2010)
Log Message:
-----------
Add -f
Modified Paths:
--------------
CalendarServer/trunk/support/submit
Modified: CalendarServer/trunk/support/submit
===================================================================
--- CalendarServer/trunk/support/submit 2010-01-06 16:54:57 UTC (rev 4907)
+++ CalendarServer/trunk/support/submit 2010-01-06 21:13:58 UTC (rev 4908)
@@ -36,7 +36,8 @@
install=false;
package=false;
-submission_enabled=true;
+ submission_enabled=true;
+ignore_uncommitted_changes=false;
usage ()
{
@@ -51,18 +52,20 @@
echo " -b Run buildit";
echo " -i Install resulting build on this system";
echo " -p Create a package with the resulting build";
+ echo " -f Ignore uncommitted changes";
if [ "${1-}" == "-" ]; then return 0; fi;
exit 64;
}
-while getopts 'hbip' option; do
+while getopts 'hbipf' option; do
case "$option" in
'?') usage; ;;
'h') usage -; exit 0; ;;
- 'b') build=true; ;;
- 'i') install=true; ;;
- 'p') package=true; ;;
+ 'b') build=true; ;;
+ 'i') install=true; ;;
+ 'p') package=true; ;;
+ 'f') ignore_uncommitted_changes=true; ;;
esac;
done;
shift $((${OPTIND} - 1));
@@ -108,7 +111,7 @@
#
# Make sure changes are checked in.
#
- if [ "$(svn st "${src}" | grep -v support/submit)" != "" ]; then
+ if [ ! "${ignore_uncommitted_changes}" ] && [ "$(svn st "${src}" | grep -v support/submit)" != "" ]; then
echo "Working copy has uncommitted changes. Aborting.";
exit 1;
fi;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100106/2f2dfc5d/attachment.html>
More information about the calendarserver-changes
mailing list