1 |
#! /bin/csh -f |
2 |
|
3 |
# script for synchronizing your CVS working directory with the CVS JSOC module (new tree) |
4 |
|
5 |
# must run from root of JSOC tree (not necessarily from $JSOCROOT) |
6 |
|
7 |
# run this on each machine to be used. |
8 |
# n02 - for linux_X86_64 machines |
9 |
# n00 - for linux4 machines such as n00, phil, etc. |
10 |
# |
11 |
# n12 formerly used for AMD x86-64 can also be used instead of n02 |
12 |
# lws Itaniam processors no longer supported for JSOC |
13 |
|
14 |
set LCMD = "R" # latest release, default is latest source |
15 |
set REV = "" |
16 |
set LATESTREL = "Ver_LATEST" |
17 |
|
18 |
foreach ARG ($argv) |
19 |
set FLAG = `echo $ARG | awk '{print substr($0, 2)}'` |
20 |
if ($FLAG == $LCMD) then |
21 |
set REV = "-r $LATESTREL" |
22 |
endif |
23 |
end |
24 |
|
25 |
if (-e suflag.txt) then |
26 |
set CVSMOD = "JSOC" |
27 |
echo "Synchronizing to JSOC (Stanford) user" |
28 |
else |
29 |
set CVSMOD = "DRMS" |
30 |
echo "Synchronizing to DRM (base system only) user" |
31 |
endif |
32 |
|
33 |
set UPDATE = "cvs checkout -AP $REV $CVSMOD" |
34 |
set CVSLOG = "cvsupdate.log" |
35 |
|
36 |
cd .. |
37 |
set wd = `pwd` |
38 |
|
39 |
echo "Calling" $UPDATE ">& JSOC/"$CVSLOG "from $wd" |
40 |
$UPDATE >& JSOC/$CVSLOG |
41 |
|
42 |
echo "JSOC synchronization finished." |