version 1.59, 2011/01/10 20:57:51
|
version 1.60, 2011/01/19 20:40:37
|
|
|
set LCMD = "l" | set LCMD = "l" |
set LOCALIZE = "L" | set LOCALIZE = "L" |
| |
|
set CUSTOMDEFSFILE = "" |
|
|
foreach ARG ($argv) | foreach ARG ($argv) |
set FLAG = `echo $ARG | awk '{print substr($0, 2)}'` | set FLAG = `echo $ARG | awk '{print substr($0, 2)}'` |
if ($FLAG == $CCMD) then | if ($FLAG == $CCMD) then |
Line 204 if ($CHKLIBS == "no") then |
|
Line 206 if ($CHKLIBS == "no") then |
|
rm ${LOCALIZATIONDIR}/custom.mk | rm ${LOCALIZATIONDIR}/custom.mk |
endif | endif |
| |
# run moreconfigure.pl - this script is written in perl because it is easier to do the compiler detection |
|
# in perl. It also reads suflag.txt (if it exists) to set the default Stanford values for certain make variables |
|
./moreconfigure.pl -f${LOCALIZATIONDIR}/custom.mk |
|
|
|
if (!(-e suflag.txt)) then | if (!(-e suflag.txt)) then |
if (!(-e config.local)) then | if (!(-e config.local)) then |
echo "Error: config.local not found. If you have a saved version of this" | echo "Error: config.local not found. If you have a saved version of this" |
Line 225 if ($CHKLIBS == "no") then |
|
Line 223 if ($CHKLIBS == "no") then |
|
else | else |
echo "CUSTOM_DEFINES = __LOCALIZED_DEFS__" >> ${LOCALIZATIONDIR}/custom.mk | echo "CUSTOM_DEFINES = __LOCALIZED_DEFS__" >> ${LOCALIZATIONDIR}/custom.mk |
./gen_init.csh | ./gen_init.csh |
|
|
|
set CUSTOMDEFSFILE = "base/include/localization.h" |
|
|
|
# run moreconfigure.pl - this script is written in perl because it is easier to do the compiler detection |
|
# in perl. It also reads suflag.txt (if it exists) to set the default Stanford values for certain make variables |
|
./moreconfigure.pl -d${LOCALIZATIONDIR} -fcustom.mk -c${CUSTOMDEFSFILE} |
|
|
|
# must follow moreconfigure.pl, because moreconfigure.pl will possibly set the compiler make variables, |
|
# which are then referenced by lines in custom.mk generated by customizemake.pl. |
./customizemake.pl ./config.local ${LOCALIZATIONDIR} | ./customizemake.pl ./config.local ${LOCALIZATIONDIR} |
endif | endif |
else if (-e config.local) then | else if (-e config.local) then |
Line 239 if ($CHKLIBS == "no") then |
|
Line 246 if ($CHKLIBS == "no") then |
|
# most of which are relevant only to non-SU NetDRMS sites). This script causes all | # most of which are relevant only to non-SU NetDRMS sites). This script causes all |
# items included in config.local to override those defined in serverdefs.h, but not all | # items included in config.local to override those defined in serverdefs.h, but not all |
# items need be specified in config.local. | # items need be specified in config.local. |
./customizedefs.pl |
|
echo "CUSTOM_DEFINES = __CUSTOMIZED_DEFS__" >> ${LOCALIZATIONDIR}/custom.mk | echo "CUSTOM_DEFINES = __CUSTOMIZED_DEFS__" >> ${LOCALIZATIONDIR}/custom.mk |
|
./customizedefs.pl |
|
|
|
set CUSTOMDEFSFILE = "base/include/customizeddefs.h" |
|
|
|
# run moreconfigure.pl - this script is written in perl because it is easier to do the compiler detection |
|
# in perl. It also reads suflag.txt (if it exists) to set the default Stanford values for certain make variables |
|
./moreconfigure.pl -d${LOCALIZATIONDIR} -fcustom.mk -c${CUSTOMDEFSFILE} |
| |
# update custom.mk with data from config.local | # update custom.mk with data from config.local |
|
# must follow moreconfigure.pl, because moreconfigure.pl will possibly set the compiler make variables, |
|
# which are then referenced by lines in custom.mk generated by customizemake.pl. |
./customizemake.pl ./config.local ${LOCALIZATIONDIR} | ./customizemake.pl ./config.local ${LOCALIZATIONDIR} |
|
else |
|
# run moreconfigure.pl - this script is written in perl because it is easier to do the compiler detection |
|
# in perl. It also reads suflag.txt (if it exists) to set the default Stanford values for certain make variables |
|
./moreconfigure.pl -d${LOCALIZATIONDIR} -fcustom.mk |
endif | endif |
| |
echo "Setting links to headers..." | echo "Setting links to headers..." |