(file) Return to jsoc_update.csh CVS log (file) (dir) Up to [Development] / JSOC

File: [Development] / JSOC / Attic / jsoc_update.csh (download) / (as text)
Revision: 1.7, Fri Feb 15 18:42:03 2008 UTC (15 years, 3 months ago) by arta
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +0 -0 lines
FILE REMOVED
These scripts have been ported to perl so we can use a 'modulespec.txt' file to specify which CVS modules should be downloaded

#! /bin/csh -f

# script for updating jsoc cvs release in my "sandbox"

# can be run from anywhere, but updates the JSOC tree rooted at $JSOCROOT only.

# run this on each machine to be used.
#    n02 - for linux_X86_64 machines
#    n00 - for linux4 machines such as n00, phil, etc.
# 
#    n12 formerly used for AMD x86-64 can also be used instead of n02
#    lws Itaniam processors no longer supported for JSOC

# check to see if the user is running from within $JSOCROOT
set scrwd = `pwd`
cd $JSOCROOT
set jsocd = `pwd`
cd scrwd

if ($scrwd != $jsocd) then
    echo "***WARNING: updating JSOC tree rooted at $jsocd"
    echo "   not the JSOC tree in working directory $scrwd"
endif

set LCMD = "R" # latest release, default is latest source
set REV = ""
set LATESTREL = "Ver_LATEST"

foreach ARG ($argv)
    set FLAG = `echo $ARG | awk '{print substr($0, 2)}'`
    if ($FLAG == $LCMD) then
      set REV = "-r $LATESTREL"
    endif
end

if (-e $JSOCROOT/suflag.txt) then
    set CVSMOD = "JSOC"
    echo "Updating JSOC (Stanford) user"
else
    set CVSMOD = "DRMS"
    echo "Updating DRM (base system only) user"
endif

set UPDATE = "cvs checkout -AP $REV $CVSMOD"
set CVSLOG = "cvsupdate.log"

cd $JSOCROOT/..
set wd = `pwd`

echo "####### Start cvs update ####################"
echo "Calling" $UPDATE ">& $JSOCROOT/"$CVSLOG "from $wd"
$UPDATE >& $JSOCROOT/$CVSLOG

cd $JSOCROOT

echo "##"
echo "## cvs update done, now check cvsupdate.log for any files with a 'C' status."
echo "## A scan of cvsupdate.log for files with conflicts follows:"
echo "## Start scanning cvsupdate.log"
grep "^C " cvsupdate.log
echo "## Done scanning cvsupdate.log"
echo "## Any lines starting with a 'C' between the 'Start' and 'Done' lines above should be fixed." 
echo "## See release notes to deal with 'C' status conflicts."
echo "##" 
echo "## Now Check cvsstatus for files that should be in the release ##"
echo "####### Start checking status ####################"

# alias cvsstatus '$JSOCROOT/scripts/cvsstatus.pl'
alias cvsstatus '$JSOCROOT/base/util/scripts/cvsstatus.pl'
cvsstatus

echo "####### Done checking status ####################"
echo "## If no lines between the 'Start' and 'Done' lines then there are no cvsstatus problems"
echo "## Continue with 'fg' when ready."
suspend

./configure 

echo "start build on linux_X86_64"
ssh n02 $JSOCROOT/make_jsoc.csh >& make_jsoc_linux_X86_64.log  
echo "done on linux_X86_64"

#echo "start build on linux_ia64"
#ssh lws $JSOCROOT/make_jsoc.csh >& ./make_jsoc_linux_ia64.log
#echo "done on linux_ia64"

echo "start build on linux_ia32"
ssh n00 $JSOCROOT/make_jsoc.csh >& make_jsoc_linux_ia32.log 
echo "done on linux_ia32"

echo "JSOC update Finished."


Karen Tian
Powered by
ViewCVS 0.9.4