]>
Commit | Line | Data |
---|---|---|
94810222 AG |
1 | #!/bin/sh -e |
2 | ||
3 | if [ "$1" == "--gettext-only" ]; then | |
4 | sh autoclean.sh | |
5 | for i in lib/libalpm/po src/pacman/po | |
6 | do | |
7 | cd $i | |
8 | mv Makevars Makevars.tmp | |
9 | package=`pwd|sed 's|.*/\(.*\)/.*|\1|'` | |
10 | intltool-update --pot --gettext-package=$package | |
11 | for j in *.po | |
12 | do | |
13 | if msgmerge $j $package.pot -o $j.new; then | |
14 | mv -f $j.new $j | |
15 | echo -n "$i/$j: " | |
16 | msgfmt -c --statistics -o $j.gmo $j | |
17 | rm -f $j.gmo | |
18 | else | |
19 | echo "msgmerge for $j failed!" | |
20 | rm -f $j.new | |
21 | fi | |
22 | done | |
23 | mv Makevars.tmp Makevars | |
24 | cd - >/dev/null | |
25 | done | |
26 | cd doc | |
27 | po4a -k 0 po4a.cfg | |
28 | cd po | |
29 | for i in *po | |
30 | do | |
31 | if msgmerge $i $package.pot -o $i.new; then | |
32 | mv -f $i.new $i | |
33 | echo -n "man/$i: " | |
34 | msgfmt -c --statistics -o $i.gmo $i | |
35 | rm -f $i.gmo | |
36 | else | |
37 | echo "msgmerge for $i failed!" | |
38 | rm -f $i.new | |
39 | fi | |
40 | done | |
41 | exit 0 | |
42 | fi | |
a1526a3e | 43 | |
de4e3b4a AG |
44 | cp -f $(dirname $(which automake))/../share/automake-*/mkinstalldirs ./ |
45 | cp -f $(dirname $(which automake))/../share/gettext/config.rpath ./ | |
46 | ||
a1526a3e JV |
47 | libtoolize -f -c |
48 | aclocal --force | |
49 | autoheader -f | |
50 | autoconf -f | |
51 | automake -a -c --gnu --foreign |