version 1.76, 2013/11/22 02:55:04
|
version 1.77, 2013/11/22 19:29:40
|
|
|
| |
# 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 | # Make the path absoluate |
set LOCALIZATIONDIR = ${PWD}/${LOCALIZATIONDIR} |
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 |
|
|
# 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 |