Update Polish translation
[alacarte.git] / autogen.sh
blobb30cd59c96d8eada85a418d103079713f1ebb07c
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 PKG_NAME="alacarte"
8 REQUIRED_AUTOCONF_VERSION=2.53
9 REQUIRED_AUTOMAKE_VERSION=${REQUIRED_AUTOMAKE_VERSION:-1.9}
11 (test -f $srcdir/configure.ac \
12 && test -f $srcdir/autogen.sh) || {
13 echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
14 echo " top-level $PKG_NAME directory"
15 exit 1
18 DIE=0
20 # This is a bit complicated here since we can't use gnome-config yet.
21 # It'll be easier after switching to pkg-config since we can then
22 # use pkg-config to find the gnome-autogen.sh script.
24 gnome_autogen=
25 gnome_datadir=
27 ifs_save="$IFS"; IFS=":"
28 for dir in $PATH ; do
29 test -z "$dir" && dir=.
30 if test -f $dir/gnome-autogen.sh ; then
31 gnome_autogen="$dir/gnome-autogen.sh"
32 gnome_datadir=`echo $dir | sed -e 's,/bin$,/share,'`
33 break
35 done
36 IFS="$ifs_save"
38 if test -z "$gnome_autogen" ; then
39 echo "You need to install the gnome-common module and make"
40 echo "sure the gnome-autogen.sh script is in your \$PATH."
41 exit 1
44 GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen