Repository navigation
Expand file tree
/
Copy pathbuild_inline_templates.sh
More file actions
executable file
·68 lines (67 loc) · 1.68 KB
/
Copy pathbuild_inline_templates.sh
File metadata and controls
executable file
·68 lines (67 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash -ex
ECPP=ecpp
PROJECT_TPL=comet/new/templates
SCAFFOLD_TPL=comet/scaffolds/templates
##
## AppTemplate
##
mkdir -p $PROJECT_TPL/build
$ECPP \
-n ProjectCmakelistsTxt \
-i $PROJECT_TPL/CMakeLists.txt.ecpp \
> $PROJECT_TPL/build/CMakeLists.txt.cpp
$ECPP \
-n ProjectMainCpp \
-i $PROJECT_TPL/main.cpp.ecpp \
> $PROJECT_TPL/build/main.cpp.cpp
$ECPP \
-n ProjectRoutesCpp \
-i $PROJECT_TPL/routes.cpp.ecpp \
> $PROJECT_TPL/build/routes.cpp.cpp
$ECPP \
-n ProjectApplicationHpp \
-i $PROJECT_TPL/application.hpp.ecpp \
> $PROJECT_TPL/build/application.cpp.cpp
$ECPP \
-n ProjectIndexHtml \
-i $PROJECT_TPL/index.html.ecpp \
> $PROJECT_TPL/build/index.html.cpp
$ECPP \
-n ProjectConfigJson \
-i $PROJECT_TPL/config.json.ecpp \
> $PROJECT_TPL/build/config.json.cpp
##
## Scaffolds
##
$ECPP \
-n ScaffoldLayoutHtml \
-i $SCAFFOLD_TPL/layout.html.ecpp \
> $SCAFFOLD_TPL/build/layout.html.cpp
$ECPP \
-n ScaffoldLayoutHpp \
-i $SCAFFOLD_TPL/layout.hpp.ecpp \
> $SCAFFOLD_TPL/build/layout.hpp.cpp
$ECPP \
-n ScaffoldViewHtml \
-i $SCAFFOLD_TPL/view.html.ecpp \
> $SCAFFOLD_TPL/build/view.html.cpp
$ECPP \
-n ScaffoldViewHpp \
-i $SCAFFOLD_TPL/view.hpp.ecpp \
> $SCAFFOLD_TPL/build/view.hpp.cpp
$ECPP \
-n ScaffoldControllerHpp \
-i $SCAFFOLD_TPL/controller.hpp.ecpp \
> $SCAFFOLD_TPL/build/controller.hpp.cpp
$ECPP \
-n ScaffoldControllerCpp \
-i $SCAFFOLD_TPL/controller.cpp.ecpp \
> $SCAFFOLD_TPL/build/controller.cpp.cpp
$ECPP \
-n ScaffoldModelHpp \
-i $SCAFFOLD_TPL/model.hpp.ecpp \
> $SCAFFOLD_TPL/build/model.hpp.cpp
$ECPP \
-n ScaffoldModelCpp \
-i $SCAFFOLD_TPL/model.cpp.ecpp \
> $SCAFFOLD_TPL/build/model.cpp.cpp