blob: 958876006ea5c06d965420c071b6b67c1b43584c (
plain)
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
40
41
42
43
44
45
46
47
48
49
50
|
#!/bin/sh
set -e
autoreconf -i -f
#Check if submodules should be enabled
enable_submodules=true
for arg in $*; do
case $arg in
--disable-submodules)
enable_submodules=false
;;
*)
;;
esac
done
if test $enable_submodules = true; then
# Fetch submodules if needed
if test ! -f lib/ext/wocky/autogen.sh; then
echo "+ Setting up submodules"
git submodule init
fi
git submodule update
# launch Wocky's autogen.sh
cd lib/ext/wocky
sh autogen.sh --no-configure
cd ../../..
fi
# Honor NOCONFIGURE for compatibility with gnome-autogen.sh
if test x"$NOCONFIGURE" = x; then
run_configure=true
for arg in $*; do
case $arg in
--no-configure)
run_configure=false
;;
*)
;;
esac
done
else
run_configure=false
fi
if test $run_configure = true; then
./configure "$@"
fi
|