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