-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathautogen.sh
executable file
·63 lines (57 loc) · 1.12 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
59
60
61
62
63
#! /bin/sh
# die on error
set -e
# go to source directory
cd "$(dirname "$0")"
pwd
# delete autotools cruft
if [ -f Makefile ]; then
make maintainer-clean || :
fi
for x in \
aclocal.m4 \
ar-lib \
configure \
confdefs.h \
config.guess \
config.log \
config.status \
config.sub \
config.cache \
config.h.in \
config.h \
compile \
libtool.m4 \
ltmain.sh \
ltoptions.m4 \
ltsugar.m4 \
ltversion.m4 \
lt~obsolete.m4 \
ltmain.sh \
libtool \
ltconfig \
missing \
mkinstalldirs \
depcomp \
install-sh \
stamp-h[0-9]* \
test-driver \
; do
for path in "./" "./build-aux/" "./build-aux/m4/" "./src/"; do
if [ -f "${path}${x}" ]; then
echo "${path}${x}"
rm -f "${path}${x}"
fi
if [ -f "${path}${x}~" ]; then
echo "${path}${x}~"
rm -f "${path}${x}~"
fi
done
done
find . -type f \( -name Makefile -or -name Makefile.in \) \
-print -exec rm -f {} \;
# generate it again if needed
if [ "$1" != "clean" ]; then
autoreconf -vif
fi
rm -Rf autom4te.cache