version 1.73, 2013/11/15 17:05:49
|
version 1.77, 2013/11/22 19:29:40
|
|
|
set PYBIN = "" | set PYBIN = "" |
| |
if ($PERLBIN == "") then | if ($PERLBIN == "") then |
if (-e configsdp.txt) then |
if (-x /home/jsoc/bin/linux_x86_64/activeperl) then |
# at stanford, use |
|
set PERLBIN = "/home/jsoc/bin/linux_x86_64/activeperl" | set PERLBIN = "/home/jsoc/bin/linux_x86_64/activeperl" |
set PYBIN = "/home/jsoc/bin/linux_x86_64/activepython" |
|
else | else |
set PERLBIN = "perl" | set PERLBIN = "perl" |
|
endif |
|
endif |
|
|
|
if ($PYBIN == "") then |
|
if (-x /home/jsoc/bin/linux_x86_64/activepython) then |
|
set PYBIN = "/home/jsoc/bin/linux_x86_64/activepython" |
|
else |
set PYBIN = "python" | set PYBIN = "python" |
endif | endif |
endif | endif |
|
|
| |
# Path to the configuration file - at some point, make this an argument to the configure script | # Path to the configuration file - at some point, make this an argument to the configure script |
set LOCALIZATIONDIR = "" | set LOCALIZATIONDIR = "" |
|
set RELLOCALIZATIONDIR = "" |
set conflocal = "config.local" | set conflocal = "config.local" |
| |
if (-e $conflocal) then | if (-e $conflocal) then |
set LOCALIZATIONDIR = `perl -n -e 'if ($_ =~ /^LOCALIZATIONDIR\s+(.+)/) { print $1; }' $conflocal` |
set RELLOCALIZATIONDIR = `perl -n -e 'if ($_ =~ /^LOCALIZATIONDIR\s+(.+)/) { print $1; }' $conflocal` |
endif | endif |
| |
if ($LOCALIZATIONDIR == "") then | if ($LOCALIZATIONDIR == "") then |
set LOCALIZATIONDIR = localization |
set RELLOCALIZATIONDIR = localization |
endif | endif |
| |
|
# Make the path absoluate |
|
set LOCALIZATIONDIR = ${PWD}/${RELLOCALIZATIONDIR} |
|
|
# Eventually, dump all these generated files into a user-specified location. | # Eventually, dump all these generated files into a user-specified location. |
# This script will need to read the config.local file to get the | # This script will need to read the config.local file to get the |
# localization directory. Otherwise, just use JSOC/localization as the default. | # localization directory. Otherwise, just use JSOC/localization as the default. |
|
|
# If we make a link from JSOC/base/drms/apps/serverdefs.h to ${LOCALIZATIONDIR}/drmsparams.h, then the script below will make links from | # If we make a link from JSOC/base/drms/apps/serverdefs.h to ${LOCALIZATIONDIR}/drmsparams.h, then the script below will make links from |
# JSOC/base/include/serverdefs.h and JSOC/include/serverdefs.h to JSOC/base/drms/apps/serverdefs.h, which then links to ${LOCALIZATIONDIR}/drmsparams.h. | # JSOC/base/include/serverdefs.h and JSOC/include/serverdefs.h to JSOC/base/drms/apps/serverdefs.h, which then links to ${LOCALIZATIONDIR}/drmsparams.h. |
cd base/drms/apps | cd base/drms/apps |
ln -s ../../../${LOCALIZATIONDIR}/drmsparams.h serverdefs.h |
ln -s ../../../${RELLOCALIZATIONDIR}/drmsparams.h serverdefs.h |
cd ../../.. | cd ../../.. |
| |
cd base/include | cd base/include |
ln -s ../../../${LOCALIZATIONDIR}/drmsparams.h localization.h |
ln -s ../../../${RELLOCALIZATIONDIR}/drmsparams.h localization.h |
cd ../.. | cd ../.. |
| |
cd base/include | cd base/include |