Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-10-15 19:38:02 +0000
committerAaron Griffin <aaron@archlinux.org>2006-10-15 19:38:02 +0000
commit94810222866b7cc36bf442993826f9b38dbe9c41 (patch)
tree325266e9e88208d481ce58b866e7002af4d279c0 /autogen.sh
parent3f27542156125118800235c5ac1bac125fd7752c (diff)
Final frugalware changes commit
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh48
1 files changed, 44 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index cadcd242..784ae76c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,10 +1,50 @@
-#!/bin/sh -exu
+#!/bin/sh -e
+
+if [ "$1" == "--gettext-only" ]; then
+ sh autoclean.sh
+ for i in lib/libalpm/po src/pacman/po
+ do
+ cd $i
+ mv Makevars Makevars.tmp
+ package=`pwd|sed 's|.*/\(.*\)/.*|\1|'`
+ intltool-update --pot --gettext-package=$package
+ for j in *.po
+ do
+ if msgmerge $j $package.pot -o $j.new; then
+ mv -f $j.new $j
+ echo -n "$i/$j: "
+ msgfmt -c --statistics -o $j.gmo $j
+ rm -f $j.gmo
+ else
+ echo "msgmerge for $j failed!"
+ rm -f $j.new
+ fi
+ done
+ mv Makevars.tmp Makevars
+ cd - >/dev/null
+ done
+ cd doc
+ po4a -k 0 po4a.cfg
+ cd po
+ for i in *po
+ do
+ if msgmerge $i $package.pot -o $i.new; then
+ mv -f $i.new $i
+ echo -n "man/$i: "
+ msgfmt -c --statistics -o $i.gmo $i
+ rm -f $i.gmo
+ else
+ echo "msgmerge for $i failed!"
+ rm -f $i.new
+ fi
+ done
+ exit 0
+fi
-#intltoolize -f -c
libtoolize -f -c
aclocal --force
autoheader -f
autoconf -f
automake -a -c --gnu --foreign
-cp -f /usr/share/automake-1.9/mkinstalldirs ./
-cp -f /usr/share/gettext/config.rpath ./
+cp -f $(dirname $(which automake))/../share/automake-1.9/mkinstalldirs ./
+cp -f $(dirname $(which automake))/../share/gettext/config.rpath ./