#!/bin/bash # Thanks to http://www.linux.com/articles/53702 for inspiration & advice # see also http://dvdauthor.sourceforge.net/doc/dvdauthor.html out="./dvd" log=$0.log.txt if [[ -d $out ]]; then rm -fr $out; fi if [[ -f $log ]]; then rm -fr $log; fi echo " -- [Generate DVD data in $out started @ `date +%I:%M:%S`] --" | tee -a $log; dvdauthor -o dvd -x dvd.xml echo " -- [Done @ `date +%I:%M:%S`] --" | tee -a $log;