-
Notifications
You must be signed in to change notification settings - Fork 1
/
autogen.sh
executable file
·45 lines (35 loc) · 962 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
#!/bin/bash
#
# Script to regenerate all the GNU auto* gunk.
# Run this from the top directory of the source tree.
#
# If it looks like I don't know what I'm doing here, you're right.
#
set -e
echo "cleaning up"
rm -rf autom4te*.cache scripts aclocal.m4 configure config.log config.status .deps stamp-h1
rm -f config.h.in config.h.in~ config.h
rm -rf scripts
find . \( -name Makefile -o -name Makefile.in \) -print0 | xargs -0 rm -f
rm -f *.o logwarn logwarn.1 logwarn-*.tar.gz logwarn.spec gitrev.c check_logwarn
rm -rf a.out.* tags
if [ "${1}" = '-C' ]; then
exit 0
fi
ACLOCAL="aclocal"
AUTOHEADER="autoheader"
AUTOMAKE="automake"
AUTOCONF="autoconf"
echo "running aclocal"
mkdir scripts
${ACLOCAL} ${ACLOCAL_ARGS} -I scripts
echo "running autoheader"
${AUTOHEADER}
echo "running automake"
${AUTOMAKE} --add-missing -c --foreign
echo "running autoconf"
${AUTOCONF} -f -i
if [ "${1}" = '-c' ]; then
echo "running configure"
./configure
fi