summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-28 14:21:21 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-28 14:21:21 -0700
commita0c8bf9fba31156f1ad7f79dafa98d1f4462b220 (patch)
treef7d911720c0273e2ac73afaad51b98344d9d25bf /python
parentc5bd3231df17fda2130e3bd51188dbe34628321a (diff)
downloadfatcat-a0c8bf9fba31156f1ad7f79dafa98d1f4462b220.tar.gz
fatcat-a0c8bf9fba31156f1ad7f79dafa98d1f4462b220.zip
move API spec to top level directory
Diffstat (limited to 'python')
-rwxr-xr-xpython/codegen_python_client.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/python/codegen_python_client.sh b/python/codegen_python_client.sh
index 7824253d..ba9bb3d3 100755
--- a/python/codegen_python_client.sh
+++ b/python/codegen_python_client.sh
@@ -1,10 +1,11 @@
-#!/bin/sh
+#!/bin/bash
-set -ex
+set -exu
+set -o pipefail
OUTPUT=`pwd`/codegen-out
mkdir -p $OUTPUT
-cp ../rust/fatcat-openapi2.yml $OUTPUT/api.yml
+cp ../fatcat-openapi2.yml $OUTPUT/api.yml
docker run \
-v $OUTPUT:/tmp/swagger/ \
@@ -18,3 +19,4 @@ docker run \
sudo chown -R `whoami`:`whoami` $OUTPUT
cp -r $OUTPUT/fatcat_client fatcat_client
cp -r $OUTPUT/test tests/codegen_tests
+#rm -rf $OUTPUT