Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 481528
Collapse All | Expand All

(-)davical-1.1.1.orig/dba/create-database.sh (-2 / +5 lines)
Lines 22-29 if ! testawldir "${AWLDIR}"; then Link Here
22
  if ! testawldir "${AWLDIR}"; then
22
  if ! testawldir "${AWLDIR}"; then
23
    AWLDIR="/usr/local/share/awl"
23
    AWLDIR="/usr/local/share/awl"
24
    if ! testawldir "${AWLDIR}"; then
24
    if ! testawldir "${AWLDIR}"; then
25
      echo "Unable to find AWL libraries"
25
      AWLDIR="/usr/share/php/awl"
26
      exit 1
26
      if ! testawldir "${AWLDIR}"; then
27
        echo "Unable to find AWL libraries"
28
        exit 1
29
      fi
27
    fi
30
    fi
28
  fi
31
  fi
29
fi
32
fi
(-)davical-1.1.1.orig/scripts/po/rebuild-translations.sh (-2 / +3 lines)
Lines 10-16 Link Here
10
PODIR="po"
10
PODIR="po"
11
LOCALEDIR="locale"
11
LOCALEDIR="locale"
12
APPLICATION="davical"
12
APPLICATION="davical"
13
AWL_LOCATION="../awl"
13
AWL_LOCATION="/usr/share/php/awl/inc"
14
14
15
if [ ! -d "${AWL_LOCATION}" ]; then
15
if [ ! -d "${AWL_LOCATION}" ]; then
16
  AWL_LOCATION="`find .. -type d -name 'awl-*.*'`"
16
  AWL_LOCATION="`find .. -type d -name 'awl-*.*'`"
Lines 25-31 fi Link Here
25
25
26
egrep -l '(i18n|translate)' htdocs/*.php inc/*.php inc/ui/*.php > ${PODIR}/pofilelist.tmp1
26
egrep -l '(i18n|translate)' htdocs/*.php inc/*.php inc/ui/*.php > ${PODIR}/pofilelist.tmp1
27
sed "s:../awl:${AWL_LOCATION}:" ${PODIR}/pofilelist.txt >> ${PODIR}/pofilelist.tmp1
27
sed "s:../awl:${AWL_LOCATION}:" ${PODIR}/pofilelist.txt >> ${PODIR}/pofilelist.tmp1
28
sort ${PODIR}/pofilelist.tmp1 | uniq > ${PODIR}/pofilelist.tmp
28
sed "s:/awl/inc/:/awl/:" ${PODIR}/pofilelist.tmp1 >> ${PODIR}/pofilelist.tmp2
29
sort ${PODIR}/pofilelist.tmp2 | uniq > ${PODIR}/pofilelist.tmp
29
xgettext --no-location --add-comments=Translators --keyword=translate --keyword=i18n --output=${PODIR}/messages.tmp -s -f ${PODIR}/pofilelist.tmp
30
xgettext --no-location --add-comments=Translators --keyword=translate --keyword=i18n --output=${PODIR}/messages.tmp -s -f ${PODIR}/pofilelist.tmp
30
sed 's.^"Content-Type: text/plain; charset=CHARSET\\n"."Content-Type: text/plain; charset=UTF-8\\n".' ${PODIR}/messages.tmp > ${PODIR}/messages.pot
31
sed 's.^"Content-Type: text/plain; charset=CHARSET\\n"."Content-Type: text/plain; charset=UTF-8\\n".' ${PODIR}/messages.tmp > ${PODIR}/messages.pot
31
rm ${PODIR}/messages.tmp ${PODIR}/pofilelist.tmp ${PODIR}/pofilelist.tmp1
32
rm ${PODIR}/messages.tmp ${PODIR}/pofilelist.tmp ${PODIR}/pofilelist.tmp1

Return to bug 481528