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

1.2 2009/06/24 23:20:14 mikep
new process for copying userApps binaries (not just liftOver now)
Index: src/utils/qa/weeklybld/makeUserApps.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/weeklybld/makeUserApps.csh,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -B -U 1000000 -r1.1 -r1.2
--- src/utils/qa/weeklybld/makeUserApps.csh	24 Jun 2009 21:53:03 -0000	1.1
+++ src/utils/qa/weeklybld/makeUserApps.csh	24 Jun 2009 23:20:14 -0000	1.2
@@ -1,47 +1,63 @@
 #!/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
+set BINDIR=linux.$MACHTYPE
+set DESTDIR=/usr/local/apache/htdocs/admin/exe/
+if ("$HOST" == "$BOX32") then
+  set DESTDIR=/tmp/
+  rm -rf $DESTDIR/$BINDIR
+  mkdir $DESTDIR/$BINDIR
+endif
+
+cd kent/src 
+make BINDIR=$BINDIR DESTDIR=$DESTDIR userApps
 ./utils/userApps/mkREADME.sh $DESTDIR/$BINDIR FOOTER
+cd ../..
 
-#scp -p $DESTDIR/$BINDIR/* qateam@hgdownload:/mirrordata/apache/htdocs/admin/exe/$BINDIR/
+# copy everything if 64 bit
+if ("$HOST" == "hgwbeta") then
+  scp -p ${DESTDIR}/${BINDIR}/* qateam@hgdownload:/mirrordata/apache/htdocs/admin/exe/$BINDIR/
+endif
+
+# copy liftOver if 32 bit
+if ("$HOST" == "$BOX32") then
+  scp -p ${DESTDIR}/${BINDIR}/liftOver qateam@hgdownload:/mirrordata/apache/htdocs/admin/exe/$BINDIR/
+endif
 
 echo "userApps $MACHTYPE built on $HOST and scp'd to hgdownload [${0}: START=${ScriptStart} END=`date`]"
 
 exit 0