Patching LAMPADAS_ROOT

This commit is contained in:
alba 2002-08-03 21:12:58 +00:00
parent 79f0567f87
commit 5374d8df5e
1 changed files with 8 additions and 1 deletions

View File

@ -333,7 +333,8 @@ patch_setenv()
local prefix='^[[:space:]]*export[[:space:]]*LAMPADAS_'
echo -n "Patching ${file} ... "
sed -e "s|\(${prefix}XML_DTD_412=\).*|\1\"${XML_DTD_412}\"|" \
sed -e "s|\(${prefix}ROOT=\).*|\1\"${PWD}\"|" \
-e "s|\(${prefix}XML_DTD_412=\).*|\1\"${XML_DTD_412}\"|" \
-e "s|\(${prefix}XML_ISO_NUM=\).*|\1\"${XML_ISO_NUM}\"|" \
-e "s|\(${prefix}WWW_USER=\).*|\1\"${WWW_USER}\"|" \
${file} > ${file}.tmp
@ -348,6 +349,12 @@ patch_setenv()
#
# main
#
if [ ! -x ${PWD}/configure ]; then
echo "ERROR: Can't find myself in current directory."
echo "Please start me ./configure"
exit -1
fi
identify_dist
echo "Identified this installation as '${DIST_NAME}'."
cat ${DIST_FILE}