2011-06-26 23:44:51 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2011-07-08 12:16:44 +00:00
|
|
|
. 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
|
2011-06-26 23:44:51 +00:00
|
|
|
|
2011-07-08 13:05:21 +00:00
|
|
|
# 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
|
|
|
|
|
2011-07-02 17:29:56 +00:00
|
|
|
printf "\n$0: FAIL: === TEPLATE === RENAME ME TO releng_<title>\n"
|
2011-06-28 18:45:49 +00:00
|
|
|
exit 31
|
|
|
|
|
2011-06-26 23:44:51 +00:00
|
|
|
#####################################################################
|
2011-06-27 14:56:36 +00:00
|
|
|
print_help
|
2011-06-26 23:44:51 +00:00
|
|
|
|
|
|
|
exit 0
|