Subversion Repositories programming

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

#!/bin/bash

### Check param1 (directory name) for emptiness ###
if [ -z "$1" ]
then
    echo "Please pass the name of the directory to dvd-ize";
    exit;
else
    cd "$1"
    mkdir AUDIO_TS VIDEO_TS
    mv *.{IFO,ifo,BUP,bup,VOB,vob} VIDEO_TS

    cd ..
    if [ -z "$2" ]
    then
        echo "Using default Volume Label";
        VOL_LABEL="DVDVOLUME";
    else
        VOL_LABEL="$2"
    fi

    echo use "mkisofs -dvd-video -udf -o -V "$VOL_LABEL" ${1}.iso ${1}"
fi