-
Notifications
You must be signed in to change notification settings - Fork 4
/
autogen.sh
executable file
·58 lines (52 loc) · 1.05 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
# Bail on error
set -e
# Clean up
echo ">>> cleaning up..." 1>&2
if test -d libnbcompat-[0-9].[0-9].[0-9]; then
chmod -R u+w libnbcompat-[0-9].[0-9].[0-9]
fi
find . -type d -name .deps -print0 | xargs -0 rm -fr
rm -rf \
aclocal.m4 \
autom4te.cache \
btree \
config/* \
config.guess \
config.log \
config.status \
config.sub \
configure \
hash \
libnbcompat-[0-9].[0-9].[0-9] \
libnbcompat-[0-9].[0-9].[0-9].tar.gz \
libnbcompat.la \
.libs \
libtool \
*.lo \
m4/libtool.m4 \
m4/lt~obsolete.m4 \
m4/ltoptions.m4 \
m4/ltsugar.m4 \
m4/ltversion.m4 \
Makefile \
Makefile.in \
mpool \
nbcompat/nbconfig.h* \
nbcompat/stamp-h1 \
*.o \
recno \
{rmd160,sha1,sha2}-test{,.{log,trs}} \
test-suite.log
if [ "$1" = '-n' ]; then
exit 0
fi
# Regnenerate
echo ">>> applying autotools..." 1>&2
autoreconf -vfi -I .
if [ "$1" != '-c' ]; then
exit 0
fi
# Reconfigure
echo ">>> running ./configure script..." 1>&2
./configure --libdir=/usr/lib64