-
Notifications
You must be signed in to change notification settings - Fork 1
/
CONFIG.inc
38 lines (30 loc) · 1.11 KB
/
CONFIG.inc
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
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
source ${SCRIPT_DIR}/../CONFIG.inc
PACKAGE=ModularManagement
TARGETDIR="$PACKAGE"
TARGETBINDIR=""
PROJECTSDIR=""
VERSIONFILE="ModularManagement.version"
DLLS=""
# PluginData DLLs
PD_DLLS=""
# Rule oriented deployoment for PluginData
declare -A PD_SUB_RULES=( )
PD_SUB_DLLS=`{ for K in "${!PD_SUB_RULES[@]}"; do echo $(basename ${PD_SUB_RULES[$K]}); done } | sort -u | tr '\n' ' '`
PD_SUB_DIRS=`{ for K in "${!PD_SUB_RULES[@]}"; do echo $(dirname ${PD_SUB_RULES[$K]}); done } | sort -u | tr '\n' ' '`
# GameData deployed DLLs
GD_DLLS=""
GD_PRIORITY="999"
# Dev LIB deployed DLLs
LIB_DLLS=""
# External Libs from the LIB directory
EXT_DLLS=""
PROJECT_BRANCH=`git branch | grep \* | cut -d ' ' -f2`
if [ "$PROJECT_BRANCH" == "master" ] ; then
# Release mode
PROJECT_STATE=""
else
# Note: Add a leading dash when this value is present!
PROJECT_STATE=""
fi
VERSION=$( cat $VERSIONFILE | tr '\n' ' ' | sed -n -E 's/^.*?"VERSION\":\{.*"MAJOR":([0-9]+?),.*?"MINOR":([0-9]+?),.*?"PATCH":([0-9]+?),.*?"BUILD":([0-9]+?).*?\}.*$/\1.\2.\3.\4/p' )