src/utils/qa/weeklybld/makeUserApps.csh 1.1

1.1 2009/06/24 21:53:03 mikep
liftover is part of larger suite of user apps now
Index: src/utils/qa/weeklybld/makeUserApps.csh
===================================================================
RCS file: src/utils/qa/weeklybld/makeUserApps.csh
diff -N src/utils/qa/weeklybld/makeUserApps.csh
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ src/utils/qa/weeklybld/makeUserApps.csh	24 Jun 2009 21:53:03 -0000	1.1
@@ -0,0 +1,47 @@
+#!/bin/tcsh
+cd $WEEKLYBLD
+
+# ------------------------------------
+# Note - this script assumes you have your ssh key in
+# qateam@hgdownload:.ssh/authorized_keys. Without it,
+#  this script can NOT be launched from beta
+#  using something like ssh $BOX32 $WEEKLYBLD/buildCgi32.csh
+#  because when scp needs the password typed in, apparently
+#  the stdin is not available from the terminal.
+# Instead, log directly into box32 and execute the script.
+#  then when prompted for the password, put in the qateam pwd. 
+# ------------------------------------
+
+if (("$HOST" != "$BOX32") && ("$HOST" != "hgwbeta")) then
+ echo "error: you must run this script on $BOX32 or on hgwbeta!"
+ exit 1
+endif
+
+set ScriptStart=`date`
+
+echo "Cleaning out $BUILDDIR/userApps"
+rm -fr $BUILDDIR/userApps
+mkdir $BUILDDIR/userApps
+
+cd $BUILDDIR/userApps
+
+echo "Checking out kent/src branch $BRANCHNN. [${0}: `date`]"
+
+cvs -d hgwdev:$CVSROOT co -r "v"$BRANCHNN"_branch"  kent/src >& /dev/null
+set err = $status
+if ( $err ) then
+ echo "error running cvs co kent/src in $BUILDDIR/userApps : $err [${0}: `date`]" 
+ exit 1
+endif
+
+BINDIR=linux.$MACHTYPE
+DESTDIR=/usr/local/apache/htdocs/admin/exe/ 
+make userApps
+./utils/userApps/mkREADME.sh $DESTDIR/$BINDIR FOOTER
+
+#scp -p $DESTDIR/$BINDIR/* qateam@hgdownload:/mirrordata/apache/htdocs/admin/exe/$BINDIR/
+
+echo "userApps $MACHTYPE built on $HOST and scp'd to hgdownload [${0}: START=${ScriptStart} END=`date`]"
+
+exit 0
+