1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/bin/sh -e
#
# This is a build script for all *.xml data used by Makefile
# This is smart enough
# * to skip po data for untranslated and
# * to use fall back translation for zh-cn/zh-tw
#
# List of translation languges as arguments
LANGPO="$*"
# current debian-reference package verison in Debian
DVERSION=$(dpkg-parsechangelog -S Version)
echo "I: build English source"
make debian-reference.en.xml
echo "I: build English source (less non-translating strings to reduce po size)"
make debian-reference.en.xmlt
# since po/debian-reference.pot is commited to git repo, no need to do this any more.
#touch -t 200001010000.00 po/debian-reference.pot
# set up po4a.cfg for po
sed -e "s/@LANGPO@/${LANGPO}/" -e "s/@DVERSION@/${DVERSION}/" po4a.cfg.in >po4a.cfg
echo "I: update po/*.po based on debian-reference.en.xmlt"
po4a po4a.cfg
|