#!/bin/bash # Thanks to http://dvdauthor.sourceforge.net/doc/index.html, http://dvdauthor.sourceforge.net/doc/dvdauthor.html out="./dvd.xml" log=$0.log.txt if [[ -f $out ]]; then rm -fr $out; fi if [[ -f $log ]]; then rm -fr $log; fi echo "" >> $out echo " " >> $out echo " " >> $out echo " " >> $out echo " " >> $out for d in $(find . -maxdepth 1 -type f -name "Part*.mpg"); do f=${d#./}; echo "Adding $f" | tee -a $log; echo " " >> $out done echo " " >> $out echo " " >> $out echo " " >> $out echo "" >> $out echo "File $out created." | tee -a $log