forked from AztecProtocol/barretenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·37 lines (34 loc) · 859 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·37 lines (34 loc) · 859 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
#!/usr/bin/env bash
source $(git rev-parse --show-toplevel)/ci3/source
function bootstrap_all {
# To run bb we need a crs.
# Download ignition up front to ensure no race conditions at runtime.
[ -n "${SKIP_BB_CRS:-}" ] || ./crs/bootstrap.sh
./bbup/bootstrap.sh $@
./cpp/bootstrap.sh $@
./ts/bootstrap.sh $@
./acir_tests/bootstrap.sh $@
./docs/bootstrap.sh $@
./sol/bootstrap.sh $@
}
function hash {
hash_str \
$(cache_content_hash ^barretenberg) \
$(./cpp/bootstrap.sh hash) # yes, cpp src gets hashed twice, but this second call also takes DISABLE_AVM into account
}
cmd=${1:-}
case "$cmd" in
hash)
hash
;;
""|clean|ci|test|test_cmds|bench|bench_cmds|release)
bootstrap_all $@
;;
"release-preview")
./docs/bootstrap.sh release-preview
;;
*)
echo "Unknown command: $cmd"
exit 1
;;
esac