2011-06-26 23:44:51 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
START_DIR_DONT_CHANGE=`pwd`
|
|
|
|
|
|
|
|
# required config items
|
|
|
|
# XOR=""
|
|
|
|
|
|
|
|
# optional config items
|
|
|
|
|
|
|
|
# config file
|
|
|
|
CONFFILE=$HOME/TODO.conf
|
2011-06-27 14:31:39 +00:00
|
|
|
KEEP=0
|
2011-06-26 23:44:51 +00:00
|
|
|
|
|
|
|
#####################################################################
|
|
|
|
print_help() {
|
|
|
|
cat << HLP
|
|
|
|
Usage:
|
|
|
|
$0 -help
|
2011-06-27 14:56:36 +00:00
|
|
|
|
2011-06-26 23:44:51 +00:00
|
|
|
# using a config file ${CONFFILE}
|
2011-06-27 14:31:39 +00:00
|
|
|
$0 -rc [-keep]
|
2011-06-27 14:56:36 +00:00
|
|
|
|
2011-06-26 23:44:51 +00:00
|
|
|
# without using a config file
|
2011-06-27 14:56:36 +00:00
|
|
|
$0 your_own_options_here
|
|
|
|
|
|
|
|
# cleanup test generated data directory and exit
|
|
|
|
$0 -cleanup
|
2011-06-26 23:44:51 +00:00
|
|
|
HLP
|
|
|
|
}
|
|
|
|
|
|
|
|
#####################################################################
|
2011-06-27 14:56:36 +00:00
|
|
|
print_help
|
2011-06-26 23:44:51 +00:00
|
|
|
#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
|