summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorChristian Hammond <chipx86@chipx86.com>2002-08-19 05:25:16 +0000
committerChristian Hammond <chipx86@chipx86.com>2002-08-19 05:25:16 +0000
commitcf22ac6dfe77387de71a4030404c7ccf082b378c (patch)
tree65df80240d55064951bc5f780d3424b3808ee351 /autogen.sh
parentb199940769038648ac343cb93ad7bc286b21c172 (diff)
downloadpidgin-cf22ac6dfe77387de71a4030404c7ccf082b378c.tar.gz
[gaim-migrate @ 3432]
It'd be one thing if they used autopoint all throughout 0.11.x, but 0.11.0, 0.11.1, and 0.11.2 (maybe even .3!) don't include it! So, back go the hacks, except now it's all much bigger because of the existance of autopoint.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh25
1 files changed, 24 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 113e9b8550..4d782b9e58 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -66,7 +66,30 @@ if [ $USE_AUTOPOINT -eq 1 ]; then
rm -rf m4
mv -f m4~ m4
else
- echo n | gettextize --copy --force || exit;
+ # They could have at least done us a favor and used autopoint all
+ # throughout 0.11.x.
+ GETTEXT_VER=`gettextize --version | sed -n 's/^.*[0-9]\+\.\([0-9]\+\)\..*$/\1/p'`
+ if [ $GETTEXT_VER -eq 11 ]; then
+ mv -f m4 m4~
+
+ # Gettext is pure evil. It DEMANDS that we press Return no matter
+ # what. This gets rid of their happy "feature" of doom.
+ sed 's:read .*< /dev/tty::' `which gettextize` > gaim-gettextize
+ chmod +x gaim-gettextize
+ echo n | ./gaim-gettextize --copy --force --intl --no-changelog || abort
+ rm gaim-gettextize
+
+ # Now restore the things that brain-dead gettext modified.
+ [ -e configure.in~ ] && mv -f configure.in~ configure.in
+ [ -e configure.ac~ ] && mv -f configure.ac~ configure.ac
+ [ -e Makefile.am~ ] && mv -f Makefile.am~ Makefile.am
+ rm -rf m4
+ mv -f m4~ m4
+
+ mv -f po/Makevars.template po/Makevars
+ else
+ echo n | gettextize --copy --force || exit;
+ fi
fi
echo "Running libtoolize, please ignore non-fatal messages...."