source: trunk/autogen.sh @ 3328

Last change on this file since 3328 was 3328, checked in by charles, 15 years ago

make the gtk translation files play nicely with autoconf

  • Property svn:executable set to *
File size: 673 bytes
Line 
1#!/bin/sh
2
3GETTEXTIZE="glib-gettextize"
4$GETTEXTIZE --version < /dev/null > /dev/null 2>&1
5if test $? -ne 0; then
6    GETTEXTIZE=""
7fi
8
9LIBTOOLIZE=libtoolize
10if ! libtoolize --help >/dev/null 2>&1 && glibtoolize --help >/dev/null 2>&1
11then
12  LIBTOOLIZE=glibtoolize
13fi
14export LIBTOOLIZE
15
16autoreconf -fi -I m4
17
18if test "$GETTEXTIZE"; then
19  echo "Creating aclocal.m4 ..."
20  test -r aclocal.m4 || touch aclocal.m4
21  echo "Running $GETTEXTIZE...  Ignore non-fatal messages."
22  echo "no" | $GETTEXTIZE --force --copy
23  echo "Making aclocal.m4 writable ..."
24  test -r aclocal.m4 && chmod u+w aclocal.m4
25  echo "Running intltoolize..."
26  intltoolize --copy --force --automake
27fi
28
Note: See TracBrowser for help on using the repository browser.