debian/bullseye
|
Last change
on this file since ac11efe was 13cbe66, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago |
|
Gauges could be added now
|
-
Property mode
set to
100755
|
|
File size:
956 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 |
|
|---|
| 3 | DIR=`dirname "$0"`
|
|---|
| 4 | TARGET="${DIR}/../src-gen/openapi_server/"
|
|---|
| 5 |
|
|---|
| 6 | echo "Preparing symlinks"
|
|---|
| 7 | mkdir -p "${TARGET}"
|
|---|
| 8 | cd "${TARGET}"
|
|---|
| 9 | if [ ! -L server_impl ]; then
|
|---|
| 10 | ln -s ../../src/server_impl/
|
|---|
| 11 | fi
|
|---|
| 12 |
|
|---|
| 13 | #echo "Copying static files"
|
|---|
| 14 | #cp -a ../../src/templates ./
|
|---|
| 15 | #cp -a ../../src/static ./
|
|---|
| 16 | #mkdir -p static/css/
|
|---|
| 17 | #mkdir -p static/js/
|
|---|
| 18 | #mkdir -p static/resources/
|
|---|
| 19 | #cp -a ../../common/css/* static/css/
|
|---|
| 20 | #cp -a ../../common/js/* static/js/
|
|---|
| 21 | #cp -a ../../common/resources/* static/resources/
|
|---|
| 22 | #cp -a ../../common/icon/gnuboat-256-256-transparent.png static/resources/
|
|---|
| 23 |
|
|---|
| 24 | echo "Generating backend and client API code"
|
|---|
| 25 | cd ../../
|
|---|
| 26 | # backend
|
|---|
| 27 | codegen/openapi-generator-cli generate -i openapi.yaml -g python-flask -t codegen/templates/ -o src-gen
|
|---|
| 28 | # client
|
|---|
| 29 | #codegen/openapi-generator-cli generate -i openapi.yaml -g javascript -o src-gen/openapi_server/static/
|
|---|
| 30 | #rm -R src-gen/openapi_server/static/.openapi*
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | cd src-gen/
|
|---|
| 34 | tox > /tmp/openapi_tox.log
|
|---|
| 35 | python3 -m openapi_server
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.