| 49 |
|
|
| 50 |
echo "-- run: \""`basename $0` $*"\" on:" `date` >> $logFile |
echo "-- run: \""`basename $0` $*"\" on:" `date` >> $logFile |
| 51 |
gcmDIR="MITgcm" |
gcmDIR="MITgcm" |
| 52 |
if test -e $gcmDIR/.git/config ; then : else |
if test -e $gcmDIR/.git/config ; then : ; else |
| 53 |
echo " No current clone ==> get a fresh clone" >> $logFile |
echo " No current clone ==> get a fresh clone" >> $logFile |
| 54 |
|
#rm -f git_Hash prevHash |
| 55 |
if test -d $gcmDIR ; then /bin/rm -rf $gcmDIR ; fi |
if test -d $gcmDIR ; then /bin/rm -rf $gcmDIR ; fi |
| 56 |
git clone https://github.com/$git_repo/${git_code}.git $gcmDIR |
git clone https://github.com/$git_repo/${git_code}.git $gcmDIR |
| 57 |
( cd $gcmDIR ; git rev-parse HEAD > ../git_Hash ) |
( cd $gcmDIR ; git rev-parse HEAD > ../git_Hash ) |
| 61 |
#-- check particular set of tests: |
#-- check particular set of tests: |
| 62 |
if test $1 = tap ; then |
if test $1 = tap ; then |
| 63 |
#- Only run this pair of test if MITgcm code got updated: |
#- Only run this pair of test if MITgcm code got updated: |
| 64 |
if test -f prevHash ; then |
if test -f git_Hash -a -f prevHash ; then |
| 65 |
#ls -l prevHash >> $logFile |
#ls -l prevHash >> $logFile |
| 66 |
diff -q git_Hash prevHash > /dev/null 2>&1 |
diff -q git_Hash prevHash > /dev/null 2>&1 |
| 67 |
retv=$? |
retv=$? |