# $Id: check_vcdxbuild_fn,v 1.4 2003/02/10 15:57:39 hvr Exp $

test_vcdxbuild_cleanup() {
    rm -f core videocd.bin videocd.cue
}

test_vcdxbuild() {
    VCDXBUILD="../frontends/xml/vcdxbuild"

    RC=0

    if [ ! -x "${VCDXBUILD}" ]; then
	echo "$0: ${VCDXBUILD} missing, check not possible"
	RC=77
	return $RC
    fi

    if have_cksum; then
	:
    else
	echo "$0: md5sum not found, check not possible";
	RC=77
	return $RC
    fi

    if ${VCDXBUILD} --check --file-prefix `dirname $1`/ $1; then
	:
    else
	echo "$0: execution failed"
	RC=1
	return $RC
    fi

    return $RC
}

#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") ***
#;;; End: ***
