0 | 0 |
#!/bin/sh
|
1 | 1 |
# Run this to generate all the initial makefiles, etc.
|
|
2 |
test -n "$srcdir" || srcdir=$(dirname "$0")
|
|
3 |
test -n "$srcdir" || srcdir=.
|
2 | 4 |
|
3 | |
srcdir=`dirname $0`
|
4 | |
test -z "$srcdir" && srcdir=.
|
|
5 |
olddir=$(pwd)
|
5 | 6 |
|
6 | |
PKG_NAME="gnome-hwp-support"
|
|
7 |
cd $srcdir
|
7 | 8 |
|
8 | |
(test -f $srcdir/configure.ac \
|
9 | |
&& test -f $srcdir/README \
|
10 | |
&& test -d $srcdir/thumbnailer) || {
|
|
9 |
PKG_NAME=$(autoconf --trace 'AC_INIT:$1' configure.ac)
|
|
10 |
|
|
11 |
(test -f $srcdir/configure.ac) || {
|
11 | 12 |
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
|
12 | 13 |
echo " top-level $PKG_NAME directory"
|
13 | 14 |
exit 1
|
14 | 15 |
}
|
15 | 16 |
|
16 | |
which gnome-autogen.sh || {
|
17 | |
echo "You need to install gnome-common from the GNOME CVS"
|
18 | |
exit 1
|
19 | |
}
|
20 | |
REQUIRED_AUTOMAKE_VERSION=1.9 . gnome-autogen.sh
|
|
17 |
if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
|
|
18 |
echo "*** WARNING: I am going to run 'configure' with no arguments." >&2
|
|
19 |
echo "*** If you wish to pass any to it, please specify them on the" >&2
|
|
20 |
echo "*** '$0' command line." >&2
|
|
21 |
echo "" >&2
|
|
22 |
fi
|
|
23 |
|
|
24 |
autoreconf --verbose --force --install || exit 1
|
|
25 |
|
|
26 |
cd "$olddir"
|
|
27 |
if [ "$NOCONFIGURE" = "" ]; then
|
|
28 |
$srcdir/configure "$@" || exit 1
|
|
29 |
|
|
30 |
if [ "$1" = "--help" ]; then
|
|
31 |
exit 0
|
|
32 |
else
|
|
33 |
echo "Now type 'make' to compile $PKG_NAME" || exit 1
|
|
34 |
fi
|
|
35 |
else
|
|
36 |
echo "Skipping configure process."
|
|
37 |
fi
|