Skip to content

Commit

Permalink
initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanMontane committed Sep 1, 2016
1 parent ccaa1ac commit 2d5f653
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Makefile
@@ -0,0 +1,5 @@
BASE=$(shell pwd)
SCRIPTS=$(BASE)/scripts

update:
sh "$(SCRIPTS)/update.sh" $(BASE) $(APIFLOW)
11 changes: 10 additions & 1 deletion README.md
@@ -1 +1,10 @@
# Paw-SwaggerGenerator
# Paw-SwaggerGenerator
An empty repository to host the build of the Swagger Generator produced by [API-Flow](https://github.com/luckymarmot/API-Flow).

## Setup
to update the repository to the latest version, use the following scripts

```sh
export APIFLOW='path-to-api-flow' # replace this with your path to API-Flow
make update APIFLOW="$APIFLOW"
```
Binary file added releases/SwaggerGenerator.zip
Binary file not shown.
13 changes: 13 additions & 0 deletions scripts/update.sh
@@ -0,0 +1,13 @@
base=$1
apiflow=$2

git describe --abbrev=0 --tags

rm -rf ./releases
mkdir -p ./releases

cd $apiflow
make pack TARGET="swagger"
cd $base

cp $apiflow/releases/paw/generators/Swagger* ./releases/

0 comments on commit 2d5f653

Please sign in to comment.