/[d-i]/trunk/installer/doc/manual/scripts/update_pot
ViewVC logotype

Contents of /trunk/installer/doc/manual/scripts/update_pot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26062 - (show annotations) (download)
Fri Mar 4 13:59:10 2005 UTC (8 years, 2 months ago) by fjpop-guest
File size: 957 byte(s)
Change messages to allow checking for errors in daily build scripts
1 #!/bin/sh
2
3 # This script is used for translations using .po files.
4 # It updates .pot files after changes in the original English
5 # .xml files.
6 # The script 'merge_xml' should be run before this script!
7
8 if [ "$1" = "--help" ] ; then
9 echo "Usage: $0"
10 exit 0
11 fi
12
13 BUILDDIR="./build"
14 if [ -z "$PO_USEBUILD" ] ; then
15 WORKDIR="./integrated"
16 PODIR="./po"
17 else
18 WORKDIR="$BUILDDIR/build.po"
19 PODIR="$BUILDDIR/build.po"
20 fi
21 SOURCEDIR="$WORKDIR/en"
22 RET=0
23
24 [ -d $SOURCE ] || exit 1
25 mkdir -p $PODIR/pot
26
27 # This check is broken!
28 if [ -n "$(find $PODIR/pot/ -name *.pot 2>/dev/null)" ] ; then
29 echo "Deleting old POT files..."
30 rm $PODIR/pot/*.pot
31 fi
32
33 for XML in `find $SOURCEDIR -name "*.xml"` ; do
34 echo "Creating new POT file for $XML"
35 POT=$(basename $XML .xml).pot
36
37 xml2pot $XML >$PODIR/pot/$POT
38 RC=$?
39 if [ $RC -ne 0 ] ; then
40 RET=$RC
41 echo "Error: error $RC while executing xml2pot"
42 fi
43 done
44
45 exit $RET

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5