source: src/mapservice/codegen/code_generator@ f5feba5

debian/bullseye
Last change on this file since f5feba5 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
RevLine 
[3a89adb]1#!/bin/bash
2
3DIR=`dirname "$0"`
[13cbe66]4TARGET="${DIR}/../src-gen/openapi_server/"
[3a89adb]5
6echo "Preparing symlinks"
[13cbe66]7mkdir -p "${TARGET}"
8cd "${TARGET}"
[3a89adb]9if [ ! -L server_impl ]; then
10 ln -s ../../src/server_impl/
11fi
12
[be25db1]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/
[3a89adb]23
[be25db1]24echo "Generating backend and client API code"
[3a89adb]25cd ../../
[be25db1]26# backend
[3a89adb]27codegen/openapi-generator-cli generate -i openapi.yaml -g python-flask -t codegen/templates/ -o src-gen
[be25db1]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
[3a89adb]32
33cd src-gen/
[be25db1]34tox > /tmp/openapi_tox.log
[3a89adb]35python3 -m openapi_server
Note: See TracBrowser for help on using the repository browser.