added support for git commit emails.
[jhbuild.git] / autogen.sh
blob431d752de3aca881d231fad89475b09ef92e090f
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=jhbuild
9 (test -f $srcdir/jhbuild/main.py) || {
10 echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
11 echo " top-level $PKG_NAME directory"
12 exit 1
15 which gnome-autogen.sh || {
16 echo "If you want to build documentation, you need to install gnome-common"
17 echo "from the GNOME Subversion."
18 echo "If you don't, try:"
19 echo " make -f Makefile.plain install"
21 exit 1
25 REQUIRED_AUTOCONF_VERSION=2.57 \
26 REQUIRED_AUTOMAKE_VERSION=1.8 \
27 REQUIRED_INTLTOOL_VERSION=0.35.0 \
28 REQUIRED_PKG_CONFIG_VERSION=0.16.0 \
29 USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes gnome-autogen.sh $@
30 if test "$?" != "0"
31 then
32 cat << _EOF_
34 Note that autotools are only required to build documentation;
35 type make -f Makefile.plain to build or install JHBuild without
36 the documentation
37 _EOF_