[CalendarServer-changes] [9778] CalendarServer/branches/users/gaya/inviteclean/support/submit
source_changes at macosforge.org
source_changes at macosforge.org
Wed Sep 5 13:37:08 PDT 2012
Revision: 9778
http://trac.macosforge.org/projects/calendarserver/changeset/9778
Author: gaya at apple.com
Date: 2012-09-05 13:37:07 -0700 (Wed, 05 Sep 2012)
Log Message:
-----------
add -n option to skip buildit verification. Use sudo to rm temp files
Modified Paths:
--------------
CalendarServer/branches/users/gaya/inviteclean/support/submit
Modified: CalendarServer/branches/users/gaya/inviteclean/support/submit
===================================================================
--- CalendarServer/branches/users/gaya/inviteclean/support/submit 2012-09-05 20:07:52 UTC (rev 9777)
+++ CalendarServer/branches/users/gaya/inviteclean/support/submit 2012-09-05 20:37:07 UTC (rev 9778)
@@ -38,7 +38,10 @@
submission_enabled=true;
ignore_uncommitted_changes=false;
+ build_no_verify_source=false;
+
+
usage ()
{
program="$(basename "$0")";
@@ -46,19 +49,20 @@
if [ "${1-}" != "-" ]; then echo "$@"; echo; fi;
echo "Usage: ${program} release [release ...]";
- echo " ${program} -b[ip]";
+ echo " ${program} release -b[ipn]";
echo "";
echo "Options:";
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";
+ echo " -n skip buildit source verification";
if [ "${1-}" == "-" ]; then return 0; fi;
exit 64;
}
-while getopts 'hbipf' option; do
+while getopts 'hbipfn' option; do
case "$option" in
'?') usage; ;;
'h') usage -; exit 0; ;;
@@ -66,6 +70,7 @@
'i') install=true; ;;
'p') package=true; ;;
'f') ignore_uncommitted_changes=true; ;;
+ 'n') build_no_verify_source=true; ;;
esac;
done;
shift $((${OPTIND} - 1));
@@ -73,6 +78,7 @@
if ! "${build}"; then
if "${install}"; then usage "-i flag requires -b"; fi;
if "${package}"; then usage "-p flag requires -b"; fi;
+ if "${build_no_verify_source}"; then usage "-n flag requires -b"; fi;
if ! "${submission_enabled}"; then
echo "Submissions from this branch are not enabled.";
@@ -178,10 +184,16 @@
for release in "${releases}"; do
release_flags="${release_flags} -release ${release}";
done;
+
+ if "${build_no_verify_source}"; then
+ verify_flags=" -noverifysource";
+ else
+ verify_flags="";
+ fi;
sudo buildit "${wc}" \
$(file /System/Library/Frameworks/Python.framework/Versions/Current/Python | sed -n -e 's|^.*(for architecture \([^)][^)]*\).*$|-arch \1|p' | sed 's|ppc7400|ppc|') \
- ${merge_flags}${release_flags};
+ ${merge_flags}${release_flags}${verify_flags};
if "${package}"; then
package_file="${project_version}.tgz";
@@ -199,4 +211,4 @@
submitproject "${wc}" ${releases};
fi;
-rm -rf "${tmp}";
+sudo rm -rf "${tmp}";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120905/d47cdd2e/attachment.html>
More information about the calendarserver-changes
mailing list