autogen.sh

changeset 3388
aade8b732a63
parent 3174
4717ca727cef
child 3402
88b3bc58bb66
equal deleted inserted replaced
3387:c70b8fd84410 3388:aade8b732a63
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;

mercurial