generated from BlockchainCommons/secure-template
-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.sh
executable file
·72 lines (55 loc) · 1.17 KB
/
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
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
git submodule init
git submodule update
source set_build_paths.sh
# Terminal colors
RED=`tput setaf 1`
GREEN=`tput setaf 2`
BLUE=`tput setaf 4`
RESET=`tput sgr0`
echo "${BLUE}== bc-crypto-base ==${RESET}"
pushd deps/bc-crypto-base
./configure --prefix ${SYSROOT}
make check
make install
popd
echo "${BLUE}== bc-shamir ==${RESET}"
pushd deps/bc-shamir
./configure --prefix ${SYSROOT}
make check
make install
popd
echo "${BLUE}== bc-sskr ==${RESET}"
pushd deps/bc-sskr
./configure --prefix ${SYSROOT}
make check
make install
popd
echo "${BLUE}== bc-bip39 ==${RESET}"
pushd deps/bc-bip39
./configure --prefix ${SYSROOT}
make check
make install
popd
echo "${BLUE}== bc-ur ==${RESET}"
pushd deps/bc-ur
./configure --prefix ${SYSROOT}
make check
make install
popd
echo "${BLUE}== argp-standalone ==${RESET}"
pushd deps/argp-standalone/argp-standalone
set +e
patch -N <../patch-argp-fmtstream.h
set -e
./configure --prefix ${SYSROOT}
make install
cp libargp.a ${SYSROOT}/lib/
cp argp.h ${SYSROOT}/include/
popd
echo "${BLUE}== seedtool ==${RESET}"
./configure
make clean
make check
echo "${GREEN}*** Seedtool built.${RESET}"
echo "${GREEN}Next step: sudo make install${RESET}"