File: autogen.sh

package info (click to toggle)
btscanner 2.1-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,140 kB
  • sloc: ansic: 4,954; sh: 836; xml: 136; makefile: 36; perl: 28
file content (43 lines) | stat: -rwxr-xr-x 612 bytes parent folder | download | duplicates (6)
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
#!/bin/sh

if [ -f Makefile ]; then
	echo "make distclean"
	make distclean
fi

rm -rf aclocal.m4 autom4te.cache config.h configure depcomp
rm -rf install-sh Makefile.in missing mkinstalldirs

echo "aclocal"
aclocal
if [ $? != 0 ]; then
	echo "aclocal failed"
	exit 1
fi

echo "autoheader"
autoheader
if [ $? != 0 ]; then
	echo "autoheader failed"
	exit 1
fi

echo "automake -a -c -f"
automake -a -c -f
if [ $? != 0 ]; then
	echo "automake failed"
	exit 1
fi

echo "autoconf"
autoconf
if [ $? != 0 ]; then
	echo "autoconf failed"
	exit 1
fi

if [ -x ./configure ]; then
	echo "Running configure"
	./configure
fi