#!/bin/sh
set -e

# check environment variables are set
if [ -z "$CC03_ROOT" ]; then
    echo "Error: CC03_ROOT not set, nothing done"
    exit 1
fi
${CC03_ROOT}/bin/cc03-check

# burn the image to CD
cdrecord ${CC03_CDRECORD_OPTIONS} ${CC03_TMP}/cc03.iso
exit
