1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/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)
# set up po4a-tmp.cfg for po-tmp
sed -e "s/@LANGPO@/${LANGPO}/" -e "s/@DVERSION@/${DVERSION}/" po4a-tmp.cfg.in \
>po4a-tmp.cfg
echo "I: create empty pot in po-tmp/ with sure-to-be-older timestamp"
touch -t 200001010000.00 po-tmp/debian-reference.pot
echo "I: update po-tmp/*.po data and build all translations based on debian-reference.en.xml"
po4a po4a-tmp.cfg
#rm -rf po-tmp
|