forked from Zipios/Zipios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmk
executable file
·49 lines (40 loc) · 764 Bytes
/
mk
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
#!/bin/sh
#
# You can consider this file as being in the public domain.
# Sample script used to build zipios after you ran cmake
PROCESSORS=`nproc`
# Determine the location of the BUILD folder
if test -d ../../../BUILD/contrib/zipios
then
BUILD=../../../BUILD/contrib/zipios
else
BUILD=../BUILD/zipios
fi
case $1 in
"-l")
make -C ${BUILD} 2>&1 | less -SR
;;
"-d")
rm -rf ${BUILD}/doc/zipios-doc-*.gz
make -C ${BUILD} zipios_Documentation
make -C ${BUILD} install
;;
"-i")
make -j${PROCESSORS} -C ${BUILD} install
;;
"-t")
(
if make -j${PROCESSORS} -C ${BUILD}
then
shift
${BUILD}/tests/zipios_tests $*
fi
) 2>&1 | less -SR
;;
"")
make -j${PROCESSORS} -C ${BUILD}
;;
*)
echo "error: unknown command line option \"$1\""
;;
esac