#!/bin/bash set -euo pipefail cd "$(dirname "$0")" if [ ! -f data/armdata.js ]; then curl -o data/armdata.js https://raw.githubusercontent.com/asmjit/asmdb/master/armdata.js fi if [ ! -f data/x86data.js ]; then curl -o data/x86data.js https://raw.githubusercontent.com/asmjit/asmdb/master/x86data.js fi DATA=$(cargo run --manifest-path build/Cargo.toml) echo "$DATA" > src/generated.rs