-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·47 lines (39 loc) · 944 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
40
41
42
43
44
45
46
47
#!/bin/sh
if [ ! -f capreq.h ]; then
cd `dirname $0`;
if [ ! -f capreq.h ]; then
echo "`pwd`: not a poldek directory"
exit 1
fi
fi
runcmd () {
echo "Executing: $@"
$@
if [ $? -ne 0 ]; then
echo "failed"
exit 1
fi
}
CONFOPTS="--enable-maintainer-mode --enable-compile-warnings"
CONFOPTS="$CONFOPTS $@"
runcmd git submodule init
runcmd git submodule update
# run autogen in submodules
(cd trurlib && ./autogen.sh)
(cd tndb && ./autogen.sh)
# generate po/POTFILES.in
make -f Makefile.extra POTFILES_in
# replaces gettextize
runcmd autopoint --force
runcmd libtoolize --force --automake
runcmd aclocal -I m4
runcmd autoheader
runcmd autoconf
runcmd automake --add-missing -a -c -f --foreign
# w/o
if [ ! -f depcomp ]; then
runcmd automake --add-missing Makefile
(cd vfile && ln -sf ../depcomp .)
(cd shell && ln -sf ../depcomp .)
fi
runcmd ./configure --sysconfdir=/etc $CONFOPTS