-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.sh
executable file
·61 lines (48 loc) · 1.4 KB
/
main.sh
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
#!/bin/bash
#
# SCRIPT: Main
# AUTHOR: Elroy Kanye
# DATE: 07 November 2021
# 1.1.A (Valid are A, B, D, T and P)
# (For Alpha, Beta, Dev, Test and Production)
#
# PLATFORM: Linux
#
# PURPOSE: Main entry script for this project.
#
# REV LIST:
# DATE: 08 November 2021
# By: Elroy Kanye
# Modification: Initialisation
#
# set -n # Uncomment to check script syntax, without execution.
# # NoteL Do not forget to put comment back.
# set -x # Uncomment to debug this shell script
#
############################################################
# DEFINE FILES AND VARIABLES HERE
############################################################
source global.sh;
source src/generators.sh;
ENTITY_NAMES="$*";
############################################################
# DEFINE FUNCTIONS HERE
############################################################
setup_dirs () {
cargo run "$TARGET_DIR"
}
############################################################
# BEGINNING OF MAIN
############################################################
## setup the main directories in the project
setup_dirs
echo "Generating components...";
#sleep 5;
for entity in $ENTITY_NAMES; do
main_generator "$entity"
done
#sleep 5;
echo "Done!";
############################################################
# END OF SCRIPT
############################################################