forked from johanedab/AnimatedAttachment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCONFIG.inc
27 lines (23 loc) · 974 Bytes
/
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
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
source ${SCRIPT_DIR}/../CONFIG.inc
PACKAGE=AnimatedAttachment
TARGETDIR="net.lisias.ksp/$PACKAGE"
TARGETBINDIR="$TARGETDIR/"
PROJECTSDIR="$PACKAGE/"
DLLS="${PACKAGE}"
PD_DLLS=""
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' ' '`
GD_DLLS=""
GD_PRIORITY="000"
LIB_DLLS="${DLLS}"
PROJECT_BRANCH=`git branch | grep \* | cut -d ' ' -f2`
if [ "$PROJECT_BRANCH" == "mestre" ] ; then
# Release mode
PROJECT_STATE=""
else
# Note: Add a leading dash when this value is present!
PROJECT_STATE=""
fi
VERSION=$( cat $PACKAGE.version | tr '\n' ' ' | sed -n -E 's/^.*?"VERSION\":\{.*"MAJOR":([0-9]+?),.*?"MINOR":([0-9]+?),.*?"PATCH":([0-9]+?),.*?"BUILD":([0-9]+?).*?\}.*$/\1.\2.\3.\4/p' )