aboutsummaryrefslogtreecommitdiffstats
path: root/python-packages/sra_client/generate.sh
diff options
context:
space:
mode:
authorHsuan Lee <boczeratul@gmail.com>2019-03-06 17:46:50 +0800
committerHsuan Lee <boczeratul@gmail.com>2019-03-06 17:46:50 +0800
commit35703539d0f2b4ddb3b11d0de8c9634af59ab71f (patch)
treeae3731221dbbb3a6fa40060a8d916cfd3f738289 /python-packages/sra_client/generate.sh
parent92a1fde5b1ecd81b07cdb5bf0c9c1cd3544799db (diff)
downloaddexon-0x-contracts-35703539d0f2b4ddb3b11d0de8c9634af59ab71f.tar.gz
dexon-0x-contracts-35703539d0f2b4ddb3b11d0de8c9634af59ab71f.tar.zst
dexon-0x-contracts-35703539d0f2b4ddb3b11d0de8c9634af59ab71f.zip
Deploy @dexon-foundation/0x.jsstable
Diffstat (limited to 'python-packages/sra_client/generate.sh')
-rwxr-xr-xpython-packages/sra_client/generate.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/python-packages/sra_client/generate.sh b/python-packages/sra_client/generate.sh
deleted file mode 100755
index 91967dee3..000000000
--- a/python-packages/sra_client/generate.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-# This file provided not so much to be run but rather more for posterity, as a
-# record of how this generated code was produced.
-
-GENERATOR_JAR=http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/3.3.4/openapi-generator-cli-3.3.4.jar
-GENERATOR_JAR_BASENAME=$(basename $GENERATOR_JAR)
-
-if [ -f $GENERATOR_JAR_BASENAME ]; then
- if [ "$(openssl dgst -sha256 $GENERATOR_JAR_BASENAME)" \
- != "SHA256($GENERATOR_JAR_BASENAME)= 24cb04939110cffcdd7062d2f50c6f61159dc3e0ca3b8aecbae6ade53ad3dc8c" \
- ]; then
- rm $GENERATOR_JAR_BASENAME
- fi
-fi
-
-if [ ! -f $GENERATOR_JAR_BASENAME ]; then
- wget $GENERATOR_JAR
-fi
-
-PYTHON_POST_PROCESS_FILE="black --line-length 79" \
- java -jar openapi-generator-cli-3.3.4.jar \
- generate \
- --input-spec http://unpkg.com/@0x/sra-spec@1.0.11/lib/api.json \
- --output . \
- --generator-name python \
- --config openapi-generator-cli-config.json \
- --enable-post-process-file