[CalendarServer-changes] [587] CalendarServer/branches/users/wsanchez/provisioning-2/support/submit

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 27 15:02:01 PST 2006


Revision: 587
          http://trac.macosforge.org/projects/calendarserver/changeset/587
Author:   wsanchez at apple.com
Date:     2006-11-27 15:02:00 -0800 (Mon, 27 Nov 2006)

Log Message:
-----------
Add -b form

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/provisioning-2/support/submit

Modified: CalendarServer/branches/users/wsanchez/provisioning-2/support/submit
===================================================================
--- CalendarServer/branches/users/wsanchez/provisioning-2/support/submit	2006-11-27 22:47:26 UTC (rev 586)
+++ CalendarServer/branches/users/wsanchez/provisioning-2/support/submit	2006-11-27 23:02:00 UTC (rev 587)
@@ -19,7 +19,7 @@
 ##
 
 ##
-# Submit project to B&I (Apple Internal Build)
+# Submit project to B&I (Apple internal build)
 ##
 
 set -e
@@ -34,6 +34,8 @@
 # Command line
 ##
 
+build=false;
+
 usage ()
 {
   program="$(basename "$0")";
@@ -41,23 +43,29 @@
   if [ "${1-}" != "-" ]; then echo "$1"; echo; fi;
 
   echo "Usage: ${program} release";
+  echo "       ${program} -b";
+  echo "";
+  echo "Options:";
+  echo "	-b Run buildit";
 
   if [ "${1-}" == "-" ]; then return 0; fi;
   exit 64;
 }
 
-while getopts 'h' option; do
+while getopts 'hb' option; do
   case "$option" in
     '?') usage; ;;
     'h') usage -; exit 0; ;;
+    'b') build=true; ;;
   esac;
 done;
 shift $((${OPTIND} - 1));
 
-if [ $# == 0 ]; then usage "No release specified"; fi;
+if ! "${build}"; then
+    if [ $# == 0 ]; then usage "No release specified"; fi;
+    release="$1"; shift;
+fi;
 
-release="$1"; shift;
-
 if [ $# != 0 ]; then usage "Unrecognized arguments:" "$@"; fi;
 
  project="CalendarServer";
@@ -123,8 +131,15 @@
 echo "Preparing sources for ${project_version}...";
 make -C "${wc}" prep;
 
-echo "";
-echo "Submitting sources for ${project_version}...";
-~rc/bin/submitproject "${wc}" "${release}";
+if "${build}"; then
+    echo "";
+    echo "Building ${project_version}...";
+    sudo ~rc/bin/buildit "${wc}" -arch ppc -arch i386;
+else
+    echo "";
+    echo "Submitting sources for ${project_version}...";
+    ~rc/bin/submitproject "${wc}" "${release}";
+fi;
 
+
 rm -rf "${tmp}";

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061127/a05b2bb0/attachment.html


More information about the calendarserver-changes mailing list