python: drop coins.json (fixes #752)
parent
325dae890e
commit
6ccf22225c
@ -1,25 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
cd $(dirname $0)/..
|
|
||||||
|
|
||||||
DEST=src/trezorlib/coins.json
|
|
||||||
|
|
||||||
BUILD_COINS_AT="../common/tools/cointool.py dump \
|
|
||||||
--list --support \
|
|
||||||
--include-type=bitcoin \
|
|
||||||
--exclude=icon \
|
|
||||||
-o \
|
|
||||||
"
|
|
||||||
|
|
||||||
if [ "$1" == "--check" ]; then
|
|
||||||
TMP=$(mktemp)
|
|
||||||
$BUILD_COINS_AT $TMP
|
|
||||||
diff -q $DEST $TMP
|
|
||||||
ERR=$?
|
|
||||||
if [ "$ERR" -ne 0 ]; then
|
|
||||||
echo "Please run $0"
|
|
||||||
fi
|
|
||||||
rm $TMP
|
|
||||||
exit $ERR
|
|
||||||
else
|
|
||||||
$BUILD_COINS_AT $DEST
|
|
||||||
fi
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue