source: src/mapservice/codegen/code_generator@ f41fe18

debian/bullseye
Last change on this file since f41fe18 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
3DIR=`dirname "$0"`
4TARGET="${DIR}/../src-gen/openapi_server/"
5
6echo "Preparing symlinks"
7mkdir -p "${TARGET}"
8cd "${TARGET}"
9if [ ! -L server_impl ]; then
10 ln -s ../../src/server_impl/
11fi
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
24echo "Generating backend and client API code"
25cd ../../
26# backend
27codegen/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
33cd src-gen/
34tox > /tmp/openapi_tox.log
35python3 -m openapi_server
Note: See TracBrowser for help on using the repository browser.