add standalone_or_supervised routine, unconditionally called from inc/*

This commit is contained in:
George Danchev
2012-04-21 09:05:57 +00:00
parent 13cbbb7f5e
commit 81528460b6
2 changed files with 27 additions and 3 deletions

View File

@ -7,9 +7,25 @@ RELENG_XORRISO=0
SIMULATE_FAILURE=0
CLEANUP=1
SPECIFIC_HELP=0
START_DIR_DONT_CHANGE=`pwd`
GEN_DATA_DIR=releng_generated_data/${SELF}
RELENG_STANDALONE=1
RELENG_PARENT=`ps -p $PPID -o comm=`
#############################################
standalone_or_supervised() {
if test x"$RELENG_PARENT" = x"run_all_auto"
then
echo "${SELF}: Running Supervised by ${RELENG_PARENT}"
RELENG_STANDALONE=0
else
echo "${SELF}: Running Standalone"
RELENG_STANDALONE=1
fi
}
# Unconditionally initialize the invocation mode - standalone or supervised
standalone_or_supervised
#############################################
print_help() {
@ -27,10 +43,12 @@ General options:
EOF
}
#############################################
boldify() {
if which tput >/dev/null 2>&1; then tput smso; fi
}
#############################################
unboldify() {
if which tput >/dev/null 2>&1; then tput rmso; fi
}
@ -85,7 +103,6 @@ cleanup() {
}
#############################################
check_for_xorriso() {
# $1: if "-x" then check executability