-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathautogen.sh
More file actions
executable file
·58 lines (49 loc) · 990 Bytes
/
autogen.sh
File metadata and controls
executable file
·58 lines (49 loc) · 990 Bytes
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
clean_files() {
echo "Cleaning bootstrapped files"
rm -rf .deps/
rm -rf .Tpo
rm -rf *.dSYM
rm -rf ngshmmalign
rm -rf ngshmmalign-*.tar.bz2
# Autotools
rm -rf Makefile
rm -rf Makefile.in
rm -rf aclocal.m4
rm -rf autom4te.cache/
rm -rf compile
rm -rf config.*
rm -rf configure
rm -rf depcomp
rm -rf install-sh
rm -rf missing
rm -rf stamp-h1
rm -rf test-driver
# source
rm -rf src/*.o
rm -rf src/.deps
rm -rf src/.dirstamp
# testsuite
rm -rf testsuite/*.log
rm -rf testsuite/*.trs
rm -rf testsuite/*_compile_test
rm -rf testsuite/*.o
rm -rf testsuite/.deps
rm -rf testsuite/.dirstamp
# OS X cruft
find . -name '.DS_Store' -type f -delete
}
if [[ "$1" == "--clean" ]]
then
clean_files
exit
fi
echo "Bootstrapping Autotools"
autoreconf -vif
if [[ "$1" == "--test" ]]
then
echo "${DISTCHECK_CONFIGURE_FLAGS}"
./configure ${DISTCHECK_CONFIGURE_FLAGS}
DISTCHECK_CONFIGURE_FLAGS="${DISTCHECK_CONFIGURE_FLAGS}" make distcheck
clean_files
fi