-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·31 lines (27 loc) · 1 KB
/
bootstrap.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
#!/bin/bash
set -eu -o pipefail
cacti_bootstrap_commit="$(git show --format='%H'|head -1)"
echo "- cacti-bootstrap: Bootstrapping from git submodules at commit ${cacti_bootstrap_commit}..."
set -x
git submodule update --init
git submodule update --init --recursive -- sentencepiece_ffi
{ set +x;} 2>&-
echo "- cacti-bootstrap: Configuring cacti-futhark (note: this calls 'cabal update')..."
set -x
make -C futhark configure
{ set +x;} 2>&-
echo "- cacti-bootstrap: Building and installing cacti-futhark to cabal bin path..."
set -x
make -C futhark install
{ set +x;} 2>&-
echo "- cacti-bootstrap: Bootstrap complete."
echo "- cacti-bootstrap: Now, you may build cacti for development as follows:"
echo "- cacti-bootstrap:"
echo "- cacti-bootstrap: cd cacti"
echo "- cacti-bootstrap: make"
echo "- cacti-bootstrap:"
echo "- cacti-bootstrap: Or, if you would like a release build:"
echo "- cacti-bootstrap:"
echo "- cacti-bootstrap: cd cacti"
echo "- cacti-bootstrap: make release"
echo "- cacti-bootstrap:"