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

File: [Development] / JSOC / Attic / jsoc_sync.csh (download) / (as text)
Revision: 1.3, Fri Feb 15 18:42:03 2008 UTC (15 years, 3 months ago) by arta
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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 synchronizing your CVS working directory with the CVS JSOC module (new tree)

# must run from root of JSOC tree (not necessarily from $JSOCROOT)

# 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

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 suflag.txt) then
    set CVSMOD = "JSOC"
    echo "Synchronizing to JSOC (Stanford) user"
else
    set CVSMOD = "DRMS"
    echo "Synchronizing to DRM (base system only) user"
endif

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

cd ..
set wd = `pwd`

echo "Calling" $UPDATE ">& JSOC/"$CVSLOG "from $wd"
$UPDATE >& JSOC/$CVSLOG

echo "JSOC synchronization finished."

Karen Tian
Powered by
ViewCVS 0.9.4