forked from bcxorg/onepixd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBuild.sh
executable file
·61 lines (54 loc) · 795 Bytes
/
Build.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
#!/bin/sh
OURPWD=`pwd`
PROJECT=onepixd
perform()
{
$*
status=$?
if [ $status != 0 ]
then
echo Fatal ERROR: "\"$*\" failed."
exit 1
fi
}
case $1 in
clean)
echo "Cleaning ${PROJECT}"
if [ -f Makefile ]
then
perform "make -s clean"
fi
rm -f *.gz
rm -f gmilt.pid
rm -f gmilt.stats.cache
rm -f gmilt.pdf
exit 0
;;
dist)
if [ -f docs/gmilt.pdf ]
then
cp docs/gmilt.pdf gmilt.pdf
else
echo "docs/gmilt.pdf: File missing."
fi
if [ -f Makefile ]
then
make dist
fi
exit 0
;;
*)
;;
esac
echo "Building ${PROJECT}"
if [ ! -f config.h.in -a -f config.h.in~ ]; then
echo cp config.h.in~ config.h.in
perform "cp config.h.in~ config.h.in"
fi
ctags *.c
autoreconf -v -i
CONF="./configure --with-wall -q"
echo ${CONF}
perform "$CONF"
#perform "make -s"
exit 0