1 |
#!/bin/sh |
#!/bin/sh |
2 |
rm -f config.cache |
rm -f config.cache |
3 |
aclocal |
|
4 |
|
### GETTEXT ### |
5 |
|
|
6 |
|
echo searching for GNU gettext intl directory... |
7 |
|
|
8 |
|
dirs="/usr/share /usr/local/share /opt/share /usr /usr/local /opt /usr/gnu/share" |
9 |
|
found=0 |
10 |
|
for try in $dirs; do |
11 |
|
echo -n " -> $try/gettext/intl... " |
12 |
|
if test -d $try/gettext/intl; then |
13 |
|
echo found it |
14 |
|
found=1 |
15 |
|
break |
16 |
|
fi |
17 |
|
echo no |
18 |
|
done |
19 |
|
if test "$found" != 1; then |
20 |
|
echo ERROR: Cannot find gettext/intl directory. |
21 |
|
echo ERROR: Install GNU gettext in /usr or /usr/local prefix. |
22 |
|
exit 7 |
23 |
|
fi; |
24 |
|
|
25 |
|
echo copying gettext intl files... |
26 |
|
intldir="$try/gettext/intl" |
27 |
|
if test ! -d intl; then |
28 |
|
mkdir intl |
29 |
|
fi |
30 |
|
olddir=`pwd` |
31 |
|
cd $intldir |
32 |
|
for file in *; do |
33 |
|
if test $file != COPYING.LIB-2.0 && test $file != COPYING.LIB-2.1; then |
34 |
|
rm -f $olddir/intl/$file |
35 |
|
cp $intldir/$file $olddir/intl/ |
36 |
|
fi |
37 |
|
done |
38 |
|
cp -f $try/gettext/po/Makefile.in.in $olddir/po/ |
39 |
|
cd $olddir |
40 |
|
if test -f intl/plural.c; then |
41 |
|
sleep 2 |
42 |
|
touch intl/plural.c |
43 |
|
fi |
44 |
|
|
45 |
|
### END GETTEXT ### |
46 |
|
|
47 |
|
echo "running aclocal..." |
48 |
|
aclocal -I /usr/share/aclocal |
49 |
|
echo "running autoconf..." |
50 |
autoconf |
autoconf |
51 |
|
echo "running autoheader..." |
52 |
autoheader |
autoheader |
53 |
|
echo "running automake..." |
54 |
automake -a |
automake -a |
55 |
|
echo "autogen.sh ok, now run ./configure script" |