Subversion Repositories programming

Rev

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

Rev Author Line No. Line
89 irasnyd 1
#!/bin/bash
2
 
3
### Check param1 (directory name) for emptiness ###
4
if [ -z "$1" ]
5
then
6
    echo "Please pass the name of the directory to dvd-ize";
7
    exit;
8
else
9
    cd "$1"
10
    mkdir AUDIO_TS VIDEO_TS
11
    mv *.{IFO,ifo,BUP,bup,VOB,vob} VIDEO_TS
12
 
13
    cd ..
14
    if [ -z "$2" ]
15
    then
16
        echo "Using default Volume Label";
17
        VOL_LABEL="DVDVOLUME";
18
    else
19
        VOL_LABEL="$2"
20
    fi
21
 
22
    echo use "mkisofs -dvd-video -udf -o -V "$VOL_LABEL" ${1}.iso ${1}"
23
fi
24