forked from GJDuck/e9patch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·44 lines (39 loc) · 780 Bytes
/
build.sh
File metadata and controls
executable file
·44 lines (39 loc) · 780 Bytes
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/bash
if [ -t 1 ]
then
RED="\033[31m"
GREEN="\033[32m"
YELLOW="\033[33m"
BOLD="\033[1m"
OFF="\033[0m"
else
RED=
GREEN=
YELLOW=
BOLD=
OFF=
fi
while [ $# -ge 1 ]
do
case "$1" in
--help|-h)
echo "usage: $0 [OPTIONS]"
echo
echo "OPTIONS:"
echo
echo " --help, -h"
echo " Print this message"
echo
exit 0
;;
*)
echo "unknown argument \"$1\"; try \`$0 --help' for more information"
exit 1
;;
esac
shift
done
echo -e "${GREEN}$0${OFF}: building e9patch and e9tool..."
make tool.clean clean
make -j `nproc` tool release
echo -e "${GREEN}$0${OFF}: done...!"