-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·41 lines (34 loc) · 1.42 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·41 lines (34 loc) · 1.42 KB
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
#! /bin/bash
printf "\t=========== Building contracts for CODEX ===========\n\n"
RED='\033[0;31m'
NC='\033[0m'
txtbld=$(tput bold)
bldred=${txtbld}$(tput setaf 1)
txtrst=$(tput sgr0)
mkdir -p build
pushd build &> /dev/null
if [ -z "$CMAKE" ]; then
CMAKE=$( command -v cmake )
fi
"$CMAKE" ../
if [ $? -ne 0 ]; then
exit -1;
fi
make -j${CORES}
if [ $? -ne 0 ]; then
exit -1;
fi
popd &> /dev/null
printf "\n${bldred}\t ___ ___ _____ ___ ___ \n"
printf "\t / /\ / /\ / /::\ / /\ /__/| \n"
printf "\t / /:/ / /::\ / /:/\:\ / /:/_ | |:| \n"
printf "\t / /:/ / /:/\:\ / /:/ \:\ / /:/ /\ | |:| \n"
printf "\t / /:/ ___ / /:/ \:\ /__/:/ \__\:| / /:/ /:/_ __|__|:| \n"
printf "\t /__/:/ / /\ /__/:/ \__\:\ \ \:\ / /:/ /__/:/ /:/ /\ /__/::::\____\n"
printf "\t \ \:\ / /:/ \ \:\ / /:/ \ \:\ /:/ \ \:\/:/ /:/ ~\~~\::::/\n"
printf "\t \ \:\ /:/ \ \:\ /:/ \ \:\/:/ \ \::/ /:/ |~~|:|~~ \n"
printf "\t \ \:\/:/ \ \:\/:/ \ \::/ \ \:\/:/ | |:| \n"
printf "\t \ \::/ \ \::/ \__\/ \ \::/ | |:| \n"
printf "\t \__\/ \__\/ \__\/ |__|/ \n${txtrst}"
printf "\\tFor more information:\\n"
printf "\\tCODEX website: http://www.codex.network/#/en\\n"