Mercurial > pidgin.yaz
annotate autogen.sh @ 3402:2490433b7417
[gaim-migrate @ 3421]
Okay, rant time. Anybody who has experienced this problem will appreciate
this.
Gettext 0.11.x is, as we all know, evil. People have been complaining
that, now that 0.11.x actually works, they're getting the following
message:
"Press Return to acknowledge the previous ___."
It had been assumed that the previous paragraphs were the reasons for the
pause. However, you always get at least one error. It's hard-coded in.
It's more of a "friendly reminder," really. On top of that, even if
there were no errors, the pause after the message is also hard-coded in
outside of any conditionals. You CANNOT get rid of it by "fixing" anything
in the tree. It's always there.
On top of that, take a look at these lines:
echo "Press Return to acknowledge the previous $count."
# Read from /dev/tty, not stdin, so that gettextize cannot be abused by
# non-interactive tools.
read < /dev/tty
See that? They specifically coded it so you cannot bypass it.
This commit bypasses it.
We're copying gettextize to gaim-gettextize and removing that read line,
running it, removing gaim-gettextize. Nasty hack, but it works.
You can all thank me when I wake up tomorrow. :)
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 18 Aug 2002 09:26:36 +0000 |
parents | 83314a9985ef |
children | 1240eb03569b |
rev | line source |
---|---|
2275
f7bf34a3b535
[gaim-migrate @ 2285]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2177
diff
changeset
|
1 #!/bin/sh |
1863 | 2 |
3388
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
3 abort() { |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
4 # Don't break the tree if something goes wrong. |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
5 if [ -e m4~ ]; then |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
6 rm -rf m4 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
7 mv m4~ m4 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
8 fi |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
9 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
10 exit 1 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
11 } |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
12 |
1863 | 13 (gettextize --version) < /dev/null > /dev/null 2>&1 || { |
14 echo; | |
15 echo "You must have gettext installed to compile Gaim"; | |
16 echo; | |
17 exit; | |
18 } | |
19 | |
20 (libtoolize --version) < /dev/null > /dev/null 2>&1 || { | |
21 echo; | |
22 echo "You must have libtool installed to compile Gaim"; | |
23 echo; | |
24 exit; | |
25 } | |
26 | |
27 (automake --version) < /dev/null > /dev/null 2>&1 || { | |
28 echo; | |
29 echo "You must have automake installed to compile Gaim"; | |
30 echo; | |
31 exit; | |
32 } | |
33 | |
34 (autoconf --version) < /dev/null > /dev/null 2>&1 || { | |
35 echo; | |
36 echo "You must have autoconf installed to compile Gaim"; | |
37 echo; | |
38 exit; | |
39 } | |
40 | |
2129
7b68621e26db
[gaim-migrate @ 2139]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1863
diff
changeset
|
41 # Thanks decklin |
3174 | 42 if test -f configure.ac ; then |
2176
fd0b454ad4c5
[gaim-migrate @ 2186]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2175
diff
changeset
|
43 if autoconf --version | grep '2\.[01]' > /dev/null 2>&1 ; then |
3174 | 44 mv configure.ac configure.2.1x; |
45 echo "configure.ac has been moved to configure.2.1x to retain compatibility with autoconf 2.1x" | |
46 echo "Future versions of Gaim will not support autoconf versions older than 2.50" | |
47 | |
2176
fd0b454ad4c5
[gaim-migrate @ 2186]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2175
diff
changeset
|
48 fi |
2129
7b68621e26db
[gaim-migrate @ 2139]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1863
diff
changeset
|
49 fi |
7b68621e26db
[gaim-migrate @ 2139]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1863
diff
changeset
|
50 |
1863 | 51 echo "Generating configuration files for Gaim, please wait...." |
52 echo; | |
53 | |
54 echo "Running gettextize, please ignore non-fatal messages...." | |
3388
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
55 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
56 # Get the major version of gettext. |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
57 GETTEXT_VER=`gettextize --version | sed -n 's/^.*[0-9]\+\.\([0-9]\+\)\..*$/\1/p'` |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
58 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
59 # Decide how we want to run gettext. |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
60 if [ $GETTEXT_VER -eq 11 ]; then |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
61 mv -f m4 m4~ |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
62 |
3402
2490433b7417
[gaim-migrate @ 3421]
Christian Hammond <chipx86@chipx86.com>
parents:
3388
diff
changeset
|
63 # Gettext is pure evil. It DEMANDS that we press Return no matter |
2490433b7417
[gaim-migrate @ 3421]
Christian Hammond <chipx86@chipx86.com>
parents:
3388
diff
changeset
|
64 # what. This gets rid of their happy "feature" of doom. |
2490433b7417
[gaim-migrate @ 3421]
Christian Hammond <chipx86@chipx86.com>
parents:
3388
diff
changeset
|
65 sed 's:read < /dev/tty::' `which gettextize` > gaim-gettextize |
2490433b7417
[gaim-migrate @ 3421]
Christian Hammond <chipx86@chipx86.com>
parents:
3388
diff
changeset
|
66 chmod +x gaim-gettextize |
2490433b7417
[gaim-migrate @ 3421]
Christian Hammond <chipx86@chipx86.com>
parents:
3388
diff
changeset
|
67 echo n | ./gaim-gettextize --copy --force --intl --no-changelog || abort |
2490433b7417
[gaim-migrate @ 3421]
Christian Hammond <chipx86@chipx86.com>
parents:
3388
diff
changeset
|
68 rm gaim-gettextize |
3388
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
69 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
70 # Now restore the things that brain-dead gettext modified. |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
71 [ -e configure.in~ ] && mv -f configure.in~ configure.in |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
72 [ -e Makefile.am~ ] && mv -f Makefile.am~ Makefile.am |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
73 rm -rf m4 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
74 mv -f m4~ m4 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
75 |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
76 mv -f po/Makevars.template po/Makevars |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
77 else |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
78 echo n | gettextize --copy --force || exit; |
83314a9985ef
[gaim-migrate @ 3407]
Christian Hammond <chipx86@chipx86.com>
parents:
3174
diff
changeset
|
79 fi |
1863 | 80 echo "Running libtoolize, please ignore non-fatal messages...." |
2754
642413968b03
[gaim-migrate @ 2767]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2415
diff
changeset
|
81 echo n | libtoolize --copy --force || exit; |
2162
a464da684307
[gaim-migrate @ 2172]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2157
diff
changeset
|
82 |
2754
642413968b03
[gaim-migrate @ 2767]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2415
diff
changeset
|
83 aclocal -I m4 $ACLOCAL_FLAGS || exit; |
642413968b03
[gaim-migrate @ 2767]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2415
diff
changeset
|
84 autoheader || exit; |
2770
24ebd5e321e4
[gaim-migrate @ 2783]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2754
diff
changeset
|
85 automake --add-missing --copy; |
2754
642413968b03
[gaim-migrate @ 2767]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2415
diff
changeset
|
86 autoconf || exit; |
642413968b03
[gaim-migrate @ 2767]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2415
diff
changeset
|
87 automake || exit; |
1863 | 88 ./configure $@ |
89 |