You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
728 B
31 lines
728 B
#!/bin/bash |
|
|
|
set -e |
|
|
|
# Include common bits |
|
. 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 |
|
|
|
# check data dir, if any and after checking -x xorriso |
|
if [ -d "${GEN_DATA_DIR}" ]; then |
|
printf "\n${SELF}: directory %s exists!" ${GEN_DATA_DIR} |
|
printf "\n${SELF}: use '${SELF} -c1' to remove.\n" |
|
exit 8 |
|
else |
|
mkdir "${GEN_DATA_DIR}" |
|
fi |
|
|
|
printf "\n$0: FAIL: === TEPLATE === RENAME ME TO releng_<title>\n" |
|
exit 31 |
|
|
|
##################################################################### |
|
print_help |
|
|
|
exit 0
|
|
|