forked from solus-project/budgie-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautogen.sh
executable file
·39 lines (34 loc) · 885 Bytes
/
autogen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
# NOTE:
# We automatically clone the gvc submodule, and this is included within
# the "make dist" tarball- you need this to package Budgie!
# See issue: 303
#
srcdir=`dirname $0`
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
PKG_NAME="budgie-desktop"
prevdir="$PWD"
cd "$srcdir"
# Fetch submodules if needed
if test ! -f gvc/Makefile.am;
then
echo "+ Setting up submodules"
git submodule init
fi
git submodule update
intltoolize --force
gtkdocize || exit 1
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF;
then
echo "*** No autoreconf found, please install it ***"
exit 1
else
libtoolize -i || exit $?
autoreconf --force --install || exit $?
fi
DEF_OPTS="--prefix=/usr --sysconfdir=/etc"
cd "$prevdir"
test -n "$NOCONFIGURE" || "$srcdir/configure" ${DEF_OPTS} "$@"