mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 09:54:09 +01:00
16 lines
253 B
Bash
Executable File
16 lines
253 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
cd `dirname $0`
|
|
|
|
cargo fmt --all
|
|
cargo build --all --release
|
|
|
|
NETWORK=$1
|
|
shift
|
|
|
|
CMD="target/release/query --network $NETWORK --db-dir ./db2 --daemon-dir $HOME/.bitcoin"
|
|
export RUST_LOG=${RUST_LOG-info}
|
|
$CMD $*
|
|
|
|
# use SIGINT to quit
|