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
Line 
1#!/bin/bash
2
3DIR=`dirname "$0"`
4SRC_GEN="${DIR}/../src-gen"
5TARGET="${SRC_GEN}/openapi_server/"
6
7echo "Cleaning directory"
8rm -R "${SRC_GEN}"
9
10echo "Preparing symlinks"
11mkdir -p "${TARGET}"
12cd "${TARGET}"
13if [ ! -L server_impl ]; then
14 ln -s ../../src/server_impl/
15fi
16
17#echo "Copying static files"
18#cp -a ../../src/templates ./
19#cp -a ../../src/static ./
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/
27
28echo "Generating backend and client API code"
29cd ../../
30# backend
31codegen/openapi-generator-cli generate -i openapi.yaml -g python-flask -t codegen/templates/ -o src-gen
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
36
37cd src-gen/
38tox > /tmp/openapi_tox.log
39python3 -m openapi_server
Note: See TracBrowser for help on using the repository browser.