dev=${DVDRIP_DEVICE-/dev/dvd}
tmp=${DVDRIP_TMPDIR-${HOME?}/tmp/dvdrip}
archive=${DVDRIP_ARCHIVE-jem.distorted.org.uk:/mnt/dvd/archive}
-here=$(realpath "$0"); here=${here%/*}
-: ${DVD_SECTOR_COPY=$here/dvd-sector-copy.$(uname -m)}
-: ${DVDRIP_UPLOAD=$here/dvdrip-upload}
+: ${DVD_SECTOR_COPY=dvd-sector-copy}
+: ${DVDRIP_UPLOAD=dvdrip-upload}
backup=nil eject=nil force=nil verbose=nil bogus=nil; unset dir sub n label
usage () {
cat <<EOF
;;
nil)
if [ ! -f "$tmp/$tag/iso" ]; then
- run_setrc "$DVD_SECTOR_COPY" -D"$dev" -c -b"$tmp/$tag/badblocks" -o"$tmp/$tag/iso.new"
+ run_setrc "$DVD_SECTOR_COPY" -c -b"$tmp/$tag/badblocks" \
+ "$dev" "$tmp/$tag/iso.new"
case $rc in
0)
run mv "$tmp/$tag/iso.new" "$tmp/$tag/iso"