2017-04-15 03:00:54 -04:00
|
|
|
#!/bin/bash
|
2009-07-24 18:11:14 -04:00
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
|
|
|
srcdir=`dirname $0`
|
|
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
|
2017-02-16 10:12:03 -05:00
|
|
|
pushd $srcdir
|
|
|
|
|
|
|
|
(test -f configure.ac \
|
|
|
|
&& test -d src) || {
|
2009-07-24 18:11:14 -04:00
|
|
|
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
|
|
|
|
echo " top-level gnome-shell directory"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2012-10-19 13:02:41 -04:00
|
|
|
# Fetch submodules if needed
|
2015-02-19 15:51:38 -05:00
|
|
|
if test ! -f src/gvc/Makefile.am || test ! -f data/theme/gnome-shell-sass/COPYING;
|
2012-10-19 13:02:41 -04:00
|
|
|
then
|
|
|
|
echo "+ Setting up submodules"
|
|
|
|
git submodule init
|
|
|
|
fi
|
|
|
|
git submodule update
|
|
|
|
|
2017-02-16 10:12:03 -05:00
|
|
|
aclocal --install || exit 1
|
|
|
|
gtkdocize --copy || exit 1
|
|
|
|
intltoolize --force --copy --automake || exit 1
|
|
|
|
autoreconf --verbose --force --install || exit 1
|
|
|
|
|
2016-10-17 07:50:08 -04:00
|
|
|
popd
|
|
|
|
|
2017-02-16 10:12:03 -05:00
|
|
|
if [ "$NOCONFIGURE" = "" ]; then
|
|
|
|
$srcdir/configure "$@" || exit 1
|
|
|
|
fi
|