version 1.84, 2015/03/30 17:31:31
|
version 1.85, 2016/08/18 23:28:29
|
|
|
| |
# set up $JSOC_MACHINE | # set up $JSOC_MACHINE |
set JSOC_MACHINE = `build/jsoc_machine.csh` | set JSOC_MACHINE = `build/jsoc_machine.csh` |
|
if ($? != 0) then |
|
echo "Unable to determine machine type." |
|
exit 1 |
|
endif |
|
|
echo "Machine type is $JSOC_MACHINE" | echo "Machine type is $JSOC_MACHINE" |
echo "" | echo "" |
| |
Line 36 set CUSTOMDEFSFILE = "" |
|
Line 41 set CUSTOMDEFSFILE = "" |
|
foreach THEARG ($argv) | foreach THEARG ($argv) |
set LITERALSTR = '{ my($argin) = "'${THEARG}'"; my($flagout); $flagout = ($argin =~ /^-(.+)/)[0]; print $flagout; }' | set LITERALSTR = '{ my($argin) = "'${THEARG}'"; my($flagout); $flagout = ($argin =~ /^-(.+)/)[0]; print $flagout; }' |
set FLAG = `$PERLBIN -e "$LITERALSTR"` | set FLAG = `$PERLBIN -e "$LITERALSTR"` |
|
if ($? != 0) then |
|
echo "Unable to parse command-line arguments." |
|
exit 1 |
|
endif |
| |
if ($FLAG == $CLEANCMD) then | if ($FLAG == $CLEANCMD) then |
set CLEAN = "no" | set CLEAN = "no" |
|
|
# Make include directories here, since they are used by multiple script blocks below | # Make include directories here, since they are used by multiple script blocks below |
if (!(-d base/include)) then | if (!(-d base/include)) then |
mkdir -p base/include | mkdir -p base/include |
|
if ($? != 0) then |
|
echo "Unable to make base/include directory." |
|
exit 1 |
|
endif |
endif | endif |
| |
if (!(-d include)) then | if (!(-d include)) then |
mkdir -p include | mkdir -p include |
|
if ($? != 0) then |
|
echo "Unable to make include directory." |
|
exit 1 |
|
endif |
|
|
|
|
endif | endif |
| |
echo "Setting links to man pages..." | echo "Setting links to man pages..." |
|
|
mkdir ${LOCALIZATIONDIR} | mkdir ${LOCALIZATIONDIR} |
if ($? != 0) then | if ($? != 0) then |
echo "Error creating localization directory." | echo "Error creating localization directory." |
|
exit 1 |
endif | endif |
endif | endif |
| |
|
|
| |
# We now call localize.py for both Stanford and NetDRMS builds. | # We now call localize.py for both Stanford and NetDRMS builds. |
if ($CFGSERVER == "yes") then | if ($CFGSERVER == "yes") then |
$PYBIN ./localize.py -d ${LOCALIZATIONDIR} -b drmsparams -s |
set cmd = "$PYBIN ./localize.py -d ${LOCALIZATIONDIR} -b drmsparams -s" |
else | else |
$PYBIN ./localize.py -d ${LOCALIZATIONDIR} -b drmsparams |
set cmd = "$PYBIN ./localize.py -d ${LOCALIZATIONDIR} -b drmsparams" |
endif | endif |
|
|
|
$cmd |
|
if ($? != 0) then |
|
echo "Failure running localize.py." |
|
exit 1 |
|
endif |
|
|
endif # End reset localization | endif # End reset localization |
| |
echo "Setting links to scripts..." | echo "Setting links to scripts..." |
if (!(-d scripts)) then | if (!(-d scripts)) then |
mkdir scripts | mkdir scripts |
|
if ($? != 0) then |
|
echo "Unable to create scripts directory." |
|
exit 1 |
|
endif |
endif | endif |
| |
if ($CLEAN == "yes") then | if ($CLEAN == "yes") then |
|
|
if (!(-l base/drms/apps/serverdefs.h)) then | if (!(-l base/drms/apps/serverdefs.h)) then |
cd base/drms/apps | cd base/drms/apps |
ln -s ../../../${RELLOCALIZATIONDIR}/drmsparams.h serverdefs.h | ln -s ../../../${RELLOCALIZATIONDIR}/drmsparams.h serverdefs.h |
|
if ($? != 0) then |
|
echo "Failure creating link to " |
|
exit 1 |
|
endif |
cd ../../.. | cd ../../.. |
endif | endif |
| |