[commit] r2472 - Convenience in the make and upload vm scripts.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[commit] r2472 - Convenience in the make and upload vm scripts.

commits-3
 
Author: eliot
Date: 2011-07-25 14:13:46 -0700 (Mon, 25 Jul 2011)
New Revision: 2472

Modified:
   branches/Cog/scripts/mkvmarchives
   branches/Cog/scripts/uploadvms
Log:
Convenience in the make and upload vm scripts.


Modified: branches/Cog/scripts/mkvmarchives
===================================================================
--- branches/Cog/scripts/mkvmarchives 2011-07-25 20:49:46 UTC (rev 2471)
+++ branches/Cog/scripts/mkvmarchives 2011-07-25 21:13:46 UTC (rev 2472)
@@ -7,6 +7,9 @@
 CL=1
 CM=1
 CW=1
+CTL=1
+CTM=1
+CTW=1
 NL=1
 NM=1
 NW=1
@@ -14,33 +17,46 @@
 CL=
 CM=
 CW=
+CTL=
+CTM=
+CTW=
 NL=
 NM=
 NW=
  while [ -n "$1" ]; do
  case $1 in
+ -c) CL=1;CM=1;CW=1;CTL=1;CTM=1;CTW=1;;
  -cl) CL=1;;
  -cm) CM=1;;
  -cw) CW=1;;
+ -ctl) CTL=1;;
+ -ctm) CTM=1;;
+ -ctw) CTW=1;;
+ -n) NL=1;NM=1;NW=1;;
  -nl) NL=1;;
  -nm) NM=1;;
  -nw) NW=1;;
- -l) CL=1;NL=1;;
- -m) CM=1;NM=1;;
- -w) CW=1;NW=1;;
- -?|-h)  echo usage: $0 [-l -m -w -cl -cm -cw -nl -nm -nw]; exit 0
+ -l) CL=1;CTL=1;NL=1;;
+ -m) CM=1;CTM=1;NM=1;;
+ -w) CW=1;CTW=1;NW=1;;
+ -?|-h)  echo usage: $0 [-c -n -l -m -w -c[lmw] -ct[lmw] -n[lmw]]; exit 0
  esac
  shift
  done
 fi
 EXES=
+REV=`grep 'SvnRawRevisionString.*Rev:' platforms/Cross/vm/sqSCCSVersion.h \
+ | sed 's/^.*Rev: \([0-9][0-9]*\) $";/\1/'`
 if [ -n "$CL" ]; then
  rm -rf coglinux.tgz
  COPYFILE_DISABLE=1 tar czf coglinux.tgz coglinux
- EXES=coglinux/lib/squeak/3.9-7/squeak
+ EXES="$EXES coglinux/lib/squeak/3.9-7/squeak"
 fi
-REV=`grep 'SvnRawRevisionString.*Rev:' platforms/Cross/vm/sqSCCSVersion.h \
- | sed 's/^.*Rev: \([0-9][0-9]*\) $";/\1/'`
+if [ -n "$CTL" ]; then
+ rm -rf cogmtlinux.tgz
+ COPYFILE_DISABLE=1 tar czf cogmtlinux.tgz cogmtlinux
+ EXES="$EXES cogmtlinux/lib/squeak/3.9-7/squeak"
+fi
 if [ -n "$CM" ]; then
  test -d Cog.app || mkdir Cog.app
  rm -rf Cog.app/* Cog.app.tgz
@@ -50,6 +66,15 @@
  tar czf Cog.app.tgz Cog.app
  EXES="$EXES Cog.app/Contents/MacOS/Croquet"
 fi
+if [ -n "$CTM" ]; then
+ test -d CogMT.app || mkdir CogMT.app
+ rm -rf CogMT.app/* CogMT.app.tgz
+ (cd macbuild/FastMT.app>/dev/null;tar cf - *)|(cd CogMT.app;tar xvf -)
+ ex "+g/[ >][0-9][0-9]*\.[0-9][0-9]*\.0/s/0\([< ]\)/$REV\1/" +w +q CogMT.app/Contents/Info.plist
+g/ [
+ tar czf CogMT.app.tgz CogMT.app
+ EXES="$EXES CogMT.app/Contents/MacOS/Croquet"
+fi
 if [ -n "$CW" ]; then
  test -d cogwin || mkdir cogwin
  rm -rf cogwin/* cogwin.zip
@@ -58,6 +83,14 @@
  zip -vr cogwin.zip cogwin
  EXES="$EXES cogwin/Croquet.exe"
 fi
+if [ -n "$CTW" ]; then
+ test -d cogmtwin || mkdir cogmtwin
+ rm -rf cogmtwin/* cogmtwin.zip
+ ln cygwinbuild/buildmt/vm/{Croquet.exe,Croquet.ini,Croquet.map} cogmtwin
+ ln cygwinbuild/buildmt/vm/*.dll cogmtwin
+ zip -vr cogmtwin.zip cogmtwin
+ EXES="$EXES cogmtwin/Croquet.exe"
+fi
 if [ -n "$NL" ]; then
  rm -rf nsvmlinux.tgz
  COPYFILE_DISABLE=1 tar czf nsvmlinux.tgz nsvmlinux
@@ -88,4 +121,4 @@
  strings - $vm | egrep '\$Rev: |Interp.*VMMaker|Cogit.*VMMaker| built on ' | sed 's/ uuid:.*//'
  echo checking $vm for asserts
  strings - $vm | grep "assert[^0-9]*[0-9][0-9][0-9]"
-done
+done 2>&1 | tee MVALOG

Modified: branches/Cog/scripts/uploadvms
===================================================================
--- branches/Cog/scripts/uploadvms 2011-07-25 20:49:46 UTC (rev 2471)
+++ branches/Cog/scripts/uploadvms 2011-07-25 21:13:46 UTC (rev 2472)
@@ -7,12 +7,17 @@
 ARCHIVES=
  while [ -n "$1" ]; do
  case $1 in
+ -c) ARCHIVES="$ARCHIVES coglinux.tgz Cog.app.tgz cogwin.zip cogmtlinux.tgz CogMT.app.tgz cogmtwin.zip";;
  -cl) ARCHIVES="$ARCHIVES coglinux.tgz";;
  -cm) ARCHIVES="$ARCHIVES Cog.app.tgz";;
  -cw) ARCHIVES="$ARCHIVES cogwin.zip";;
+ -ctl) ARCHIVES="$ARCHIVES cogmtlinux.tgz";;
+ -ctm) ARCHIVES="$ARCHIVES CogMT.app.tgz";;
+ -ctw) ARCHIVES="$ARCHIVES cogmtwin.zip";;
  -nl) ARCHIVES="$ARCHIVES nsvmlinux.tgz";;
  -nm) ARCHIVES="$ARCHIVES Newspeak Virtual Machine.app.tgz";;
  -nw) ARCHIVES="$ARCHIVES nsvmwin.zip";;
+ -n) ARCHIVES="$ARCHIVES nsvmlinux.tgz Newspeak Virtual Machine.app.tgz nsvmwin.zip";;
  -l) ARCHIVES="$ARCHIVES coglinux.tgz nsvmlinux.tgz";;
  -m) ARCHIVES="$ARCHIVES Cog.app.tgz Newspeak Virtual Machine.app.tgz";;
  -w) ARCHIVES="$ARCHIVES cogwin.tgz nsvmwin.tgz";;