|
|
|
@ -3,14 +3,34 @@
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
START_DIR_DONT_CHANGE=`pwd`
|
|
|
|
|
|
|
|
|
|
SELF=$(basename "$0")
|
|
|
|
|
# required config items
|
|
|
|
|
XOR=""
|
|
|
|
|
DIR=""
|
|
|
|
|
IMG=""
|
|
|
|
|
RELENG_XORRISO=""
|
|
|
|
|
RELENG_DIR=""
|
|
|
|
|
RELENG_IMG=""
|
|
|
|
|
|
|
|
|
|
CONFFILE=$HOME/.libburnia-releng/${SELF}.conf
|
|
|
|
|
KEEP=0
|
|
|
|
|
GEN_DATA_DIR=releng_generated_data/${SELF}
|
|
|
|
|
|
|
|
|
|
printf "\n$0: FAIL: SCRIPT NOT COMPLETED YET\n"
|
|
|
|
|
exit 31
|
|
|
|
|
|
|
|
|
|
print_help() {
|
|
|
|
|
cat << HLP
|
|
|
|
|
Usage:
|
|
|
|
|
${SELF} -help
|
|
|
|
|
|
|
|
|
|
# using a config file ${CONFFILE}
|
|
|
|
|
${SELF} -rc [-keep]
|
|
|
|
|
|
|
|
|
|
# without using a config file
|
|
|
|
|
${SELF} xorriso_cmd IN_dir OUT_image [-keep]
|
|
|
|
|
|
|
|
|
|
printf "\n$0: SCRIPT NOT COMPLETED YET\n"
|
|
|
|
|
exit 100
|
|
|
|
|
# cleanup test generated data directory and exit
|
|
|
|
|
${SELF} -cleanup
|
|
|
|
|
HLP
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Thomas:
|
|
|
|
@ -76,7 +96,7 @@ Sketched by Thomas:
|
|
|
|
|
diff -r "$on_disk" "$copy_on_disk"
|
|
|
|
|
if test "$?" -ne 0
|
|
|
|
|
then
|
|
|
|
|
echo 'FAILURE !!!'
|
|
|
|
|
echo 'FAIL: Original disk tree and temporary tree differ'
|
|
|
|
|
else
|
|
|
|
|
echo "Success."
|
|
|
|
|
fi
|
|
|
|
|