]> git.phdru.name Git - audio-cdr-video.git/blob - cdr-dvdrw-tools/cdrkit/dvdrec-data
Do not shift an empty list of arguments
[audio-cdr-video.git] / cdr-dvdrw-tools / cdrkit / dvdrec-data
1 #! /bin/sh
2
3 # "Usage $0 [label]"
4
5 . .config
6
7 if [ -n "$label" ]; then
8    label="$1"
9    shift
10 fi
11
12 if [ -z "$label" ]; then
13    label="`guess_label.py`"
14 fi
15
16 if [ -z "$label" ]; then
17    echo -n "Enter DVD label: "
18    read label
19 fi
20
21 cdblocks=`genisoimage -print-size -quiet -allow-leading-dots -allow-lowercase -allow-multidot -relaxed-filenames -r -J -input-charset koi8-r -joliet-long -V "$label" "$source_dir"`
22 genisoimage -allow-leading-dots -allow-lowercase -allow-multidot \
23    -relaxed-filenames -r -J -input-charset koi8-r -joliet-long \
24    -V "$label" "$source_dir" |
25 wodim -speed="$dvdrw_speed" -sao dev="$dev_cdrw" tsize="$cdblocks"s -data -