libisoburn/releng/template_new

48 lines
1.0 KiB
Plaintext
Raw Normal View History

#!/bin/bash
2011-07-11 09:40:23 +00:00
# Copyright 2011 George Danchev <danchev@spnet.net>
2011-07-15 06:05:57 +00:00
# Licensed under GNU GPL version 2 or later
2011-07-11 09:40:23 +00:00
2011-07-18 17:22:59 +00:00
set -e
2011-07-13 11:24:32 +00:00
not_in_releng_exit() {
printf "\nPlease execute the tests from releng directory.\n\n"
exit 1
}
2011-07-18 17:22:59 +00:00
print_specific_help() {
# Print own help text
echo "Specific options:"
echo " NONE YET"
echo
}
# Include common bits
2011-07-13 11:24:32 +00:00
. inc/releng_getopts.inc || not_in_releng_exit
2011-07-18 17:22:59 +00:00
#
if test "$SPECIFIC_HELP" = 1; then
print_specific_help
exit 0
fi
2011-07-18 12:26:30 +00:00
# Each test should decide whether or not it needs
2011-07-08 12:16:44 +00:00
# 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-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}
2011-07-15 18:07:02 +00:00
printf "\n${SELF}: use '${SELF} -c' to remove.\n"
2011-07-08 13:05:21 +00:00
exit 8
else
mkdir "${GEN_DATA_DIR}"
fi
#####################################################################
exit 1