Mercurial > pidgin.yaz
comparison autogen.sh @ 3388:83314a9985ef
[gaim-migrate @ 3407]
Here it is. Added gettext 0.11.x support! It should work fine, but please
let me know if anything is broken in 0.10.x or 0.11.x (in my tests, it
all worked fine)
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 08 Aug 2002 18:11:17 +0000 |
parents | e75b4df7a770 |
children | 2490433b7417 |
comparison
equal
deleted
inserted
replaced
3387:c434f13dfa9b | 3388:83314a9985ef |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | |
3 abort() { | |
4 # Don't break the tree if something goes wrong. | |
5 if [ -e m4~ ]; then | |
6 rm -rf m4 | |
7 mv m4~ m4 | |
8 fi | |
9 | |
10 exit 1 | |
11 } | |
2 | 12 |
3 (gettextize --version) < /dev/null > /dev/null 2>&1 || { | 13 (gettextize --version) < /dev/null > /dev/null 2>&1 || { |
4 echo; | 14 echo; |
5 echo "You must have gettext installed to compile Gaim"; | 15 echo "You must have gettext installed to compile Gaim"; |
6 echo; | 16 echo; |
40 | 50 |
41 echo "Generating configuration files for Gaim, please wait...." | 51 echo "Generating configuration files for Gaim, please wait...." |
42 echo; | 52 echo; |
43 | 53 |
44 echo "Running gettextize, please ignore non-fatal messages...." | 54 echo "Running gettextize, please ignore non-fatal messages...." |
45 echo n | gettextize --copy --force || exit; | 55 |
56 # Get the major version of gettext. | |
57 GETTEXT_VER=`gettextize --version | sed -n 's/^.*[0-9]\+\.\([0-9]\+\)\..*$/\1/p'` | |
58 | |
59 # Decide how we want to run gettext. | |
60 if [ $GETTEXT_VER -eq 11 ]; then | |
61 mv -f m4 m4~ | |
62 | |
63 echo n | gettextize --copy --force --intl --no-changelog || abort | |
64 | |
65 # Now restore the things that brain-dead gettext modified. | |
66 [ -e configure.in~ ] && mv -f configure.in~ configure.in | |
67 [ -e Makefile.am~ ] && mv -f Makefile.am~ Makefile.am | |
68 rm -rf m4 | |
69 mv -f m4~ m4 | |
70 | |
71 mv -f po/Makevars.template po/Makevars | |
72 else | |
73 echo n | gettextize --copy --force || exit; | |
74 fi | |
46 echo "Running libtoolize, please ignore non-fatal messages...." | 75 echo "Running libtoolize, please ignore non-fatal messages...." |
47 echo n | libtoolize --copy --force || exit; | 76 echo n | libtoolize --copy --force || exit; |
48 | 77 |
49 aclocal -I m4 $ACLOCAL_FLAGS || exit; | 78 aclocal -I m4 $ACLOCAL_FLAGS || exit; |
50 autoheader || exit; | 79 autoheader || exit; |