File: AutoBuild.sh

package info (click to toggle)
opendmarc 1.4.0~beta1+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 9,924 kB
  • sloc: xml: 294,675; ansic: 13,828; perl: 2,391; sh: 438; makefile: 201; python: 58
file content (50 lines) | stat: -rwxr-xr-x 607 bytes parent folder | download
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
#!/bin/sh

perform()
{
	$*
	status=$?
	if [ $status != 0 ]
	then
		echo Fatal ERROR: "\"$*\" failed."
		exit 1
	fi
}

case $1 in
clean)
	echo "Cleaning"
	if [ -f Makefile ]
	then
		perform "make -s clean"
	fi
	rm -f config.log
	rm -f config.status
	rm -f *.gz
	exit 0
	;;
dist)
	# Put extras here.
	if [ -f Makefile ]
	then
		make dist
	fi
	exit 0
	;;
*)
	;;
esac

echo "Building opendmarc"

if [ ! -f config.h.in -a -f config.h.in~ ]; then
    perform "cp config.h.in~ config.h.in"
fi

autoreconf -v -i

CONF="./configure -q --with-wall -C --with-spf"
echo ${CONF}
perform "$CONF"
perform "make -s"
exit 0