buildsystem: enable custom colours (or none at all)

This commit is contained in:
MilhouseVH
2017-08-11 01:57:26 +01:00
parent fb748cf452
commit 976e9de27d
8 changed files with 65 additions and 14 deletions

View File

@@ -49,13 +49,13 @@ if [ -n "$PKG_ARCH" -a ! "$PKG_ARCH" = "any" ]; then
fi
if [ ! -f $PKG_DIR/package.mk ]; then
printf "${boldred}${PACKAGE_NAME}: no package.mk file found${endcolor}\n"
printf "$(print_color CLR_ERROR "${PACKAGE_NAME}: no package.mk file found")\n"
exit 1
fi
$SCRIPTS/build $@
printf "%${BUILD_INDENT}c ${boldgreen}INSTALL${endcolor} $PACKAGE_NAME ${boldwhite}($TARGET)${endcolor}\n" ' '>&$SILENT_OUT
printf "%${BUILD_INDENT}c $(print_color CLR_INSTALL "INSTALL") $PACKAGE_NAME $(print_color CLR_TARGET "($TARGET)")\n" ' '>&$SILENT_OUT
export BUILD_INDENT=$((${BUILD_INDENT:-1}+$BUILD_INDENT_SIZE))
if [ "$TARGET" = target ] ; then