Bash: Various improvement for compiler and db_assembler

Now db_assembler also creates the users specified in conf.sh files if not exists

+ Simplified some paths for compilation
This commit is contained in:
Yehonal
2017-09-26 12:53:46 +02:00
parent c85b1b591e
commit eb78254579
4 changed files with 14 additions and 11 deletions

View File

@@ -5,10 +5,6 @@ then
CCTYPE=${CCTYPE^} # capitalize first letter if it's not yet
fi
BUILDPATH=$BINPATH
[ $CTYPE == "Debug" ] && BUILDPATH="$BUILDPATH/debug/" || BUILDPATH="$BUILDPATH/release/"
INSTALL_PATH=$(readlink -f "$BINPATH/../")
[ $CTYPE == "Debug" ] && BUILDPATH="$BUILDPATH/debug/build/" || BUILDPATH="$BUILDPATH/release/build/"
[ $CTYPE == "Debug" ] && BINPATH="$BINPATH/debug" || BINPATH="$BINPATH/release"
[ $CTYPE == "Debug" ] && BINPATH="$BINPATH/debug/" || BINPATH="$BINPATH/release/"

View File

@@ -10,8 +10,7 @@ fi
function ac_on_after_build() {
# move the run engine
mkdir -p "$INSTALL_PATH/bin/"
cp -rvf "$AC_PATH_MODULES/acore/startup-scripts/"* "$INSTALL_PATH/bin/"
cp -rvf "$AC_PATH_MODULES/acore/startup-scripts/"* "$BINPATH"
}
registerHooks "ON_AFTER_BUILD" ac_on_after_build