Mercurial > pidgin
comparison autogen.sh @ 3407:02a10c03e3e1
[gaim-migrate @ 3426]
Now we use autopoint. Sadly, nothing has changed.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 18 Aug 2002 18:00:43 +0000 |
parents | b8969b47efaf |
children | ba6d0856c8e4 |
comparison
equal
deleted
inserted
replaced
3406:3fa89049fe6c | 3407:02a10c03e3e1 |
---|---|
8 fi | 8 fi |
9 | 9 |
10 exit 1 | 10 exit 1 |
11 } | 11 } |
12 | 12 |
13 (gettextize --version) < /dev/null > /dev/null 2>&1 || { | 13 USE_AUTOPOINT=1 |
14 echo; | 14 |
15 echo "You must have gettext installed to compile Gaim"; | 15 (autopoint --version) < /dev/null > /dev/null 2>&1 || { |
16 echo; | 16 |
17 exit; | 17 USE_AUTOPOINT=0 |
18 | |
19 (gettextize --version) < /dev/null > /dev/null 2>&1 || { | |
20 echo; | |
21 echo "You must have gettext installed to compile Gaim"; | |
22 echo; | |
23 exit; | |
24 } | |
18 } | 25 } |
19 | 26 |
20 (libtoolize --version) < /dev/null > /dev/null 2>&1 || { | 27 (libtoolize --version) < /dev/null > /dev/null 2>&1 || { |
21 echo; | 28 echo; |
22 echo "You must have libtool installed to compile Gaim"; | 29 echo "You must have libtool installed to compile Gaim"; |
51 echo "Generating configuration files for Gaim, please wait...." | 58 echo "Generating configuration files for Gaim, please wait...." |
52 echo; | 59 echo; |
53 | 60 |
54 echo "Running gettextize, please ignore non-fatal messages...." | 61 echo "Running gettextize, please ignore non-fatal messages...." |
55 | 62 |
56 # Get the major version of gettext. | 63 if [ $USE_AUTOPOINT -eq 1 ]; then |
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~ | 64 mv -f m4 m4~ |
62 | 65 |
63 # Gettext is pure evil. It DEMANDS that we press Return no matter | 66 echo n | autopoint --force || exit; |
64 # what. This gets rid of their happy "feature" of doom. | |
65 sed 's:read .*< /dev/tty::' `which gettextize` > gaim-gettextize | |
66 chmod +x gaim-gettextize | |
67 echo n | ./gaim-gettextize --copy --force --intl --no-changelog || abort | |
68 rm gaim-gettextize | |
69 | 67 |
70 # Now restore the things that brain-dead gettext modified. | 68 # Now restore the things that brain-dead gettext modified. |
71 [ -e configure.in~ ] && mv -f configure.in~ configure.in | 69 [ -e configure.in~ ] && mv -f configure.in~ configure.in |
72 [ -e configure.ac~ ] && mv -f configure.ac~ configure.ac | 70 [ -e configure.ac~ ] && mv -f configure.ac~ configure.ac |
73 [ -e Makefile.am~ ] && mv -f Makefile.am~ Makefile.am | 71 [ -e Makefile.am~ ] && mv -f Makefile.am~ Makefile.am |
74 rm -rf m4 | 72 rm -rf m4 |
75 mv -f m4~ m4 | 73 mv -f m4~ m4 |
76 | |
77 mv -f po/Makevars.template po/Makevars | 74 mv -f po/Makevars.template po/Makevars |
78 else | 75 else |
79 echo n | gettextize --copy --force || exit; | 76 echo n | gettextize --copy --force || exit; |
80 fi | 77 fi |
78 | |
81 echo "Running libtoolize, please ignore non-fatal messages...." | 79 echo "Running libtoolize, please ignore non-fatal messages...." |
82 echo n | libtoolize --copy --force || exit; | 80 echo n | libtoolize --copy --force || exit; |
83 | 81 |
84 aclocal -I m4 $ACLOCAL_FLAGS || exit; | 82 aclocal -I m4 $ACLOCAL_FLAGS || exit; |
85 autoheader || exit; | 83 autoheader || exit; |