Adjust how we find AWL when building relative strings.

This commit is contained in:
Andrew McMillan 2011-09-11 20:28:12 +12:00
parent 1c965d4cdf
commit 8cefe9d5c4

View File

@ -12,6 +12,8 @@ LOCALEDIR="locale"
APPLICATION="davical"
AWL_LOCATION="../awl"
if [ ! -d "${AWL_LOCATION}" ]; then
AWL_LOCATION="`find .. -type d -name 'awl-*.*'`"
if [ ! -d "${AWL_LOCATION}" ]; then
AWL_LOCATION=/usr/share/awl
if [ ! -d "${AWL_LOCATION}" ]; then
@ -19,6 +21,7 @@ if [ ! -d "${AWL_LOCATION}" ]; then
exit 1
fi
fi
fi
egrep -l '(i18n|translate)' htdocs/*.php inc/*.php inc/ui/*.php > ${PODIR}/pofilelist.tmp1
sed "s:../awl:${AWL_LOCATION}:" ${PODIR}/pofilelist.txt >> ${PODIR}/pofilelist.tmp1