Squashed 'vendor/git@git.knownelement.com/29418/KNEL/KNELShellFramework/' content from commit 5ecde81
git-subtree-dir: vendor/git@git.knownelement.com/29418/KNEL/KNELShellFramework git-subtree-split: 5ecde81ce441d5802fd7e7e91a441e34f327f457
This commit is contained in:
47
ProjectCode/project.sh
Normal file
47
ProjectCode/project.sh
Normal file
@@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
|
||||
#####
|
||||
#Core framework functions...
|
||||
#####
|
||||
|
||||
export FRAMEWORK_INCLUDES_FULL_PATH
|
||||
FRAMEWORK_INCLUDES_FULL_PATH="$(realpath ../Framework-Includes)"
|
||||
|
||||
export FRAMEWORK_CONFIGS_FULL_PATH
|
||||
FRAMEWORK_CONFIGS_FULL_PATH="$(realpath ../Framework-ConfigFiles)"
|
||||
|
||||
export PROJECT_INCLUDES_FULL_PATH
|
||||
PROJECT_INCLUDES_FULL_PATH="$(realpath ../Project-Includes)"
|
||||
|
||||
export PROJECT_CONFIGS_FULL_PATH
|
||||
PROJECT_CONFIGS_FULL_PATH="$(realpath ../Project-ConfigFiles)"
|
||||
|
||||
|
||||
#Framework variables are read from hee
|
||||
source $FRAMEWORK_CONFIGS_FULL_PATH/FrameworkVars
|
||||
|
||||
#Boilerplate and support functions
|
||||
FrameworkIncludeFiles="$(ls -1 --color=none $FRAMEWORK_INCLUDES_FULL_PATH/*)"
|
||||
|
||||
IFS=$'\n\t'
|
||||
for file in ${FrameworkIncludeFiles[@]}; do
|
||||
. "$file"
|
||||
done
|
||||
unset IFS
|
||||
|
||||
|
||||
if [[ $ProjectIncludes = 1 ]]; then
|
||||
ProjectIncludeFiles="$(ls -1 --color=none $PROJECT_INCLUDES_FULL_PATH/*)"
|
||||
IFS=$'\n\t'
|
||||
for file in ${ProjectIncludeFiles[@]}; do
|
||||
. "$file"
|
||||
done
|
||||
unset IFS
|
||||
fi
|
||||
|
||||
PreflightCheck
|
||||
|
||||
echo > $LOGFILENAME
|
||||
|
||||
#Your custom logic here....
|
||||
echo "Custom logic here..."
|
Reference in New Issue
Block a user