File: po4a2

package info (click to toggle)
debian-reference 2.132
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 33,980 kB
  • sloc: python: 586; makefile: 575; sh: 528; sed: 80; xml: 36
file content (20 lines) | stat: -rwxr-xr-x 725 bytes parent folder | download | duplicates (3)
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