handle specific help anywhere
This commit is contained in:
@ -3,17 +3,30 @@
|
||||
# Copyright 2011 George Danchev <danchev@spnet.net>
|
||||
# Licensed under GNU GPL version 2 or later
|
||||
|
||||
set -e
|
||||
|
||||
not_in_releng_exit() {
|
||||
printf "\nPlease execute the tests from releng directory.\n\n"
|
||||
exit 1
|
||||
}
|
||||
|
||||
set -e
|
||||
print_specific_help() {
|
||||
# Print own help text
|
||||
echo "Specific options:"
|
||||
echo " NONE YET"
|
||||
echo
|
||||
}
|
||||
|
||||
# Include common bits
|
||||
. inc/releng_getopts.inc || not_in_releng_exit
|
||||
|
||||
#
|
||||
printf "\n$0: FAIL: === TEPLATE === RENAME ME TO [auto|manual]_<title>\n"
|
||||
if test "$SPECIFIC_HELP" = 1; then
|
||||
print_specific_help
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
# Each test should decide whether or not it needs
|
||||
# a xorriso binary to test, since some do compilations only.
|
||||
|
Reference in New Issue
Block a user