diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2003-11-01 20:42:16 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2003-11-01 20:42:16 +0000 |
commit | dc8368815efaf639e61332299dc40acdce7a0bd9 (patch) | |
tree | df21721a5398d95b1c179b8408610988d05f83ec /autogen.sh | |
parent | Fixed sort bug (op, halfop, voice, normal) (diff) | |
download | weechat-dc8368815efaf639e61332299dc40acdce7a0bd9.tar.xz weechat-dc8368815efaf639e61332299dc40acdce7a0bd9.zip |
Added po translations to autoconf/automake process
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 51 |
1 files changed, 50 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index 5a53b7243..ba54bb85f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,55 @@ #!/bin/sh rm -f config.cache -aclocal + +### GETTEXT ### + +echo searching for GNU gettext intl directory... + +dirs="/usr/share /usr/local/share /opt/share /usr /usr/local /opt /usr/gnu/share" +found=0 +for try in $dirs; do + echo -n " -> $try/gettext/intl... " + if test -d $try/gettext/intl; then + echo found it + found=1 + break + fi + echo no +done +if test "$found" != 1; then + echo ERROR: Cannot find gettext/intl directory. + echo ERROR: Install GNU gettext in /usr or /usr/local prefix. + exit 7 +fi; + +echo copying gettext intl files... +intldir="$try/gettext/intl" +if test ! -d intl; then + mkdir intl +fi +olddir=`pwd` +cd $intldir +for file in *; do + if test $file != COPYING.LIB-2.0 && test $file != COPYING.LIB-2.1; then + rm -f $olddir/intl/$file + cp $intldir/$file $olddir/intl/ + fi +done +cp -f $try/gettext/po/Makefile.in.in $olddir/po/ +cd $olddir +if test -f intl/plural.c; then + sleep 2 + touch intl/plural.c +fi + +### END GETTEXT ### + +echo "running aclocal..." +aclocal -I /usr/share/aclocal +echo "running autoconf..." autoconf +echo "running autoheader..." autoheader +echo "running automake..." automake -a +echo "autogen.sh ok, now run ./configure script" |