From a0c8bf9fba31156f1ad7f79dafa98d1f4462b220 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 28 May 2018 14:21:21 -0700 Subject: move API spec to top level directory --- python/codegen_python_client.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'python') 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 -- cgit v1.2.3