source: src/mapservice/codegen/code_generator@ 75adef3

debian/bullseye
Last change on this file since 75adef3 was ec9e811, checked in by Joachim Langenbach <joachim.langenbach@…>, 7 years ago

Logs upload is now working

Signed-off-by: Joachim Langenbach <joachim.langenbach@…>

  • Property mode set to 100755
File size: 998 bytes
RevLine 
[3a89adb]1#!/bin/bash
2
3DIR=`dirname "$0"`
[ec9e811]4SRC_GEN="${DIR}/../src-gen"
5TARGET="${SRC_GEN}/openapi_server/"
6
7echo "Cleaning directory"
8rm -R "${SRC_GEN}"
[3a89adb]9
10echo "Preparing symlinks"
[13cbe66]11mkdir -p "${TARGET}"
12cd "${TARGET}"
[3a89adb]13if [ ! -L server_impl ]; then
14 ln -s ../../src/server_impl/
15fi
16
[be25db1]17#echo "Copying static files"
18#cp -a ../../src/templates ./
19#cp -a ../../src/static ./
[ec9e811]20mkdir -p static/css/
21mkdir -p static/js/
22mkdir -p static/resources/
23cp -a ../../../common/css/* static/css/
24cp -a ../../../common/js/* static/js/
25cp -a ../../../common/resources/* static/resources/
26cp -a ../../../common/icon/* static/resources/
[3a89adb]27
[be25db1]28echo "Generating backend and client API code"
[3a89adb]29cd ../../
[be25db1]30# backend
[3a89adb]31codegen/openapi-generator-cli generate -i openapi.yaml -g python-flask -t codegen/templates/ -o src-gen
[be25db1]32# client
33#codegen/openapi-generator-cli generate -i openapi.yaml -g javascript -o src-gen/openapi_server/static/
34#rm -R src-gen/openapi_server/static/.openapi*
35
[3a89adb]36
37cd src-gen/
[be25db1]38tox > /tmp/openapi_tox.log
[3a89adb]39python3 -m openapi_server
Note: See TracBrowser for help on using the repository browser.