2017-05-24 14:08:33 +00:00
|
|
|
#!/bin/sh
|
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-03-17 14:07:15 +00:00
|
|
|
olddir="$(pwd)"
|
|
|
|
|
|
|
|
cd "${srcdir}"
|
2017-02-16 15:12:03 +00:00
|
|
|
|
|
|
|
(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
|
|
|
|
|
2017-03-17 14:07:15 +00:00
|
|
|
cd "${olddir}"
|
2016-10-17 11:50:08 +00:00
|
|
|
|
2017-02-16 15:12:03 +00:00
|
|
|
if [ "$NOCONFIGURE" = "" ]; then
|
2017-03-17 14:07:15 +00:00
|
|
|
"${srcdir}/configure" "$@" || exit 1
|
2017-02-16 15:12:03 +00:00
|
|
|
fi
|