version 1.66, 2012/04/24 21:52:19
|
version 1.72, 2013/11/12 02:38:49
|
|
|
if ($PERLBIN == "") then | if ($PERLBIN == "") then |
if (-e configsdp.txt) then | if (-e configsdp.txt) then |
# at stanford, use | # at stanford, use |
set PERLBIN = "/home/jsoc/bin/linux_x86_64/perl5.12.2" |
set PERLBIN = "/home/jsoc/bin/linux_x86_64/activeperl" |
else | else |
set PERLBIN = "perl" | set PERLBIN = "perl" |
endif | endif |
|
|
endif | endif |
endif | endif |
| |
|
# TEMPORARILY create a link from ${LOCALIZATIONDIR}/drmsparams.h to JSOC/base/libs/perl/JSOC_DB_INFO_INCLUDE.pl |
|
cd ${LOCALIZATIONDIR} |
|
rm -f drmsparams.pm |
|
ln -s ../base/libs/perl/JSOC_DB_INFO_INCLUDE.pl drmsparams.pm |
|
cd .. |
|
|
|
|
if (-e ${LOCALIZATIONDIR}/custom.mk) then | if (-e ${LOCALIZATIONDIR}/custom.mk) then |
rm ${LOCALIZATIONDIR}/custom.mk | rm ${LOCALIZATIONDIR}/custom.mk |
endif | endif |
|
|
exit 1; | exit 1; |
else | else |
echo "CUSTOM_DEFINES = __LOCALIZED_DEFS__" >> ${LOCALIZATIONDIR}/custom.mk | echo "CUSTOM_DEFINES = __LOCALIZED_DEFS__" >> ${LOCALIZATIONDIR}/custom.mk |
|
|
|
set CUSTOMDEFSFILE = "base/include/localization.h" |
|
echo "*** generating $CUSTOMDEFSFILE ***" |
|
cat /dev/null > $CUSTOMDEFSFILE |
|
echo '#ifndef __LOCALIZATION_H' >> $CUSTOMDEFSFILE |
|
echo '#define __LOCALIZATION_H' >> $CUSTOMDEFSFILE |
./gen_init.csh | ./gen_init.csh |
| |
# Non-customizable parameters. There are certain features that are not | # Non-customizable parameters. There are certain features that are not |
# present in NetDRMS, but that are present in the SDP JSOC version of DRMS. | # present in NetDRMS, but that are present in the SDP JSOC version of DRMS. |
# Set defines needed to accomplish this here. | # Set defines needed to accomplish this here. |
# NetDRMS sites do not have DSDS. | # NetDRMS sites do not have DSDS. |
echo '#define DSDS_SUPPORT (0)' >> base/include/localization.h |
echo '#define DSDS_SUPPORT (0)' >> $CUSTOMDEFSFILE |
|
echo '#endif' >> $CUSTOMDEFSFILE |
set CUSTOMDEFSFILE = "base/include/localization.h" |
|
| |
# run moreconfigure.pl - this script is written in perl because it is easier to do the compiler detection | # run moreconfigure.pl - this script is written in perl because it is easier to do the compiler detection |
# in perl. It also reads configdsp.txt (if it exists) to set the default Stanford values for certain make variables | # in perl. It also reads configdsp.txt (if it exists) to set the default Stanford values for certain make variables |