more unification
This commit is contained in:
@ -2,46 +2,19 @@
|
||||
|
||||
set -e
|
||||
|
||||
START_DIR_DONT_CHANGE=`pwd`
|
||||
SELF=$(basename "$0")
|
||||
# required config items
|
||||
# RELENG_XORRISO=""
|
||||
|
||||
# optional config items
|
||||
|
||||
# config file
|
||||
CONFFILE=${HOME}/.libburnia-releng/${SELF}.conf
|
||||
GEN_DATA_DIR=releng_generated_data/${SELF}
|
||||
KEEP=0
|
||||
. inc/releng_getopts.inc
|
||||
# Each releng_ test should decide whether or not it need
|
||||
# a xorriso binary to test, since some do compilations only.
|
||||
if [ ! -x $RELENG_XORRISO ]; then
|
||||
print_help
|
||||
printf "\n${SELF}: -x absolute or relative path to binary to be run.\n\n"
|
||||
exit 31
|
||||
fi
|
||||
|
||||
printf "\n$0: FAIL: === TEPLATE === RENAME ME TO releng_<title>\n"
|
||||
exit 31
|
||||
|
||||
#####################################################################
|
||||
print_help() {
|
||||
cat << HLP
|
||||
Usage:
|
||||
$0 -help
|
||||
|
||||
# using a config file ${CONFFILE}
|
||||
$0 -rc [-keep]
|
||||
|
||||
# without using a config file
|
||||
$0 your_own_options_here
|
||||
|
||||
# cleanup test generated data directory and exit
|
||||
$0 -cleanup
|
||||
HLP
|
||||
}
|
||||
|
||||
#####################################################################
|
||||
print_help
|
||||
#if [ ! -x "${XOR}" ]; then
|
||||
# printf "$0: Not found or not an executable: $XOR\n"
|
||||
# exit 50
|
||||
#fi
|
||||
|
||||
# xorriso version details, incl. underlying libraries
|
||||
# "${XOR}" -version
|
||||
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user