lotus/build/proof-params/mkparamfetch.sh

21 lines
358 B
Bash
Raw Normal View History

2019-09-25 19:13:28 +00:00
#!/usr/bin/env bash
set -euo pipefail
2019-10-02 21:12:37 +00:00
function b64() {
f="$1"
case `uname` in
Darwin)
base64 -i "$f"
;;
Linux)
base64 "$f" -w 0
;;
esac
printf "unsupported system" 1>&2
exit 1
}
sed "s/{{PARAMSJSON}}/$(b64 build/proof-params/parameters.json)/g" build/proof-params/paramfetch.sh.template > ./build/paramfetch.sh
2019-09-25 19:13:28 +00:00
chmod +x ./build/paramfetch.sh