2004-09-19 20:24:53 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
|
|
|
srcdir=`dirname $0`
|
2004-09-19 22:32:22 +00:00
|
|
|
test -z "$srcdir" && srcdir=.
|
2004-09-19 20:24:53 +00:00
|
|
|
|
2004-09-19 22:32:22 +00:00
|
|
|
PKG_NAME="gparted"
|
2004-09-19 20:24:53 +00:00
|
|
|
|
2004-09-19 22:32:22 +00:00
|
|
|
which gnome-autogen.sh || {
|
2008-10-08 21:19:01 +00:00
|
|
|
echo "You need to install gnome-common from the GNOME SVN"
|
2004-09-19 22:32:22 +00:00
|
|
|
exit 1
|
2004-09-19 20:24:53 +00:00
|
|
|
}
|
2004-09-19 23:16:54 +00:00
|
|
|
|
2009-04-18 20:47:32 +00:00
|
|
|
# Ensure that m4 directory exists
|
|
|
|
if ! test -d $srcdir/m4; then
|
|
|
|
mkdir $srcdir/m4
|
|
|
|
fi
|
|
|
|
|
2008-09-26 21:33:08 +00:00
|
|
|
# Check for GNOME-DOC-UTILS
|
|
|
|
GDUMAKE="gnome-doc-utils.make"
|
|
|
|
GDUMAKEFULLPATH=`locate $GDUMAKE | grep -m 1 "gnome-doc-utils/"`
|
|
|
|
if test "x${GDUMAKEFULLPATH}" = "x" ; then
|
|
|
|
echo "Cannot find file: $GDUMAKE"
|
2008-10-08 21:19:01 +00:00
|
|
|
echo "You need to install gnome-doc-utils from the GNOME SVN"
|
2008-09-26 21:33:08 +00: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
|
|
|
|
}
|
|
|
|
|
2008-08-05 15:34:10 +00:00
|
|
|
REQUIRED_AUTOMAKE_VERSION=1.9 USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh
|