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