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