2004-09-19 14:24:53 -06:00
|
|
|
#!/bin/sh
|
2013-05-27 13:22:13 -06:00
|
|
|
# autogen.sh - Run this to generate all the initial makefiles, etc.
|
|
|
|
#
|
|
|
|
# Copyright (C) 2004 Bart 'plors' Hakvoort
|
|
|
|
# Copyright (C) 2008 Curtis Gedak
|
|
|
|
#
|
|
|
|
# Copying and distribution of this file, with or without modification,
|
|
|
|
# are permitted in any medium without royalty provided the copyright
|
|
|
|
# notice and this notice are preserved. This file is offered as-is,
|
|
|
|
# without any warranty.
|
|
|
|
|
2004-09-19 14:24:53 -06:00
|
|
|
|
|
|
|
srcdir=`dirname $0`
|
2004-09-19 16:32:22 -06:00
|
|
|
test -z "$srcdir" && srcdir=.
|
2004-09-19 14:24:53 -06:00
|
|
|
|
2004-09-19 16:32:22 -06:00
|
|
|
PKG_NAME="gparted"
|
2004-09-19 14:24:53 -06:00
|
|
|
|
2004-09-19 16:32:22 -06:00
|
|
|
which gnome-autogen.sh || {
|
2013-05-27 13:27:16 -06:00
|
|
|
echo "You need to install gnome-common"
|
2004-09-19 16:32:22 -06:00
|
|
|
exit 1
|
2004-09-19 14:24:53 -06:00
|
|
|
}
|
2004-09-19 17:16:54 -06:00
|
|
|
|
2009-04-18 14:47:32 -06:00
|
|
|
# Ensure that m4 directory exists
|
|
|
|
if ! test -d $srcdir/m4; then
|
|
|
|
mkdir $srcdir/m4
|
|
|
|
fi
|
|
|
|
|
2008-09-26 15:33:08 -06:00
|
|
|
# Check for GNOME-DOC-UTILS
|
|
|
|
GDUMAKE="gnome-doc-utils.make"
|
2013-06-14 05:35:40 -06:00
|
|
|
datadir=`pkg-config --variable=datadir gnome-doc-utils`
|
|
|
|
GDUMAKEFULLPATH="$datadir/gnome-doc-utils/$GDUMAKE"
|
|
|
|
if test "X$datadir" = 'X' || ! test -f "${GDUMAKEFULLPATH}" ; then
|
2008-09-26 15:33:08 -06:00
|
|
|
echo "Cannot find file: $GDUMAKE"
|
2013-05-27 13:27:16 -06:00
|
|
|
echo "You need to install gnome-doc-utils"
|
2008-09-26 15:33:08 -06:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
# Ensure a copy of gnome-doc-utils.make exists in the top source directory
|
|
|
|
test -e $srcdir/$GDUMAKE || {
|
|
|
|
echo "Copying $GDUMAKEFULLPATH to $srcdir"
|
|
|
|
cp -p $GDUMAKEFULLPATH $srcdir
|
|
|
|
}
|
|
|
|
|
2018-02-01 15:56:18 -07:00
|
|
|
REQUIRED_AUTOMAKE_VERSION=1.9 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh
|