chiark
/
gitweb
/
~mdw
/
dvdrip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
00a5be1
)
dvdrip: Leave a note in the working directory about which device we're using.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 6 Mar 2022 01:08:27 +0000
(
01:08
+0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 6 Mar 2022 01:08:27 +0000
(
01:08
+0000)
dvdrip
patch
|
blob
|
blame
|
history
diff --git
a/dvdrip
b/dvdrip
index a4b5900accde3011caf438c8440bf9dbbf5a7fdd..734b00fb70ae5fe01db7edc7f75326cb2757b533 100755
(executable)
--- a/
dvdrip
+++ b/
dvdrip
@@
-95,6
+95,9
@@
info "copying \`$discid'"
echo "$discid" >"$tmp/$tag/discid.new"
mv "$tmp/$tag/discid.new" "$tmp/$tag/discid"
echo "$discid" >"$tmp/$tag/discid.new"
mv "$tmp/$tag/discid.new" "$tmp/$tag/discid"
+echo "$dev" >"$tmp/$tag/device.new"
+mv "$tmp/$tag/device.new" "$tmp/$tag/device"
+
accumulate_badblocks () {
if [ -f "$tmp/$tag/badblocks.new" ]; then
if [ ! -f "$tmp/$tag/badblocks" ]; then
accumulate_badblocks () {
if [ -f "$tmp/$tag/badblocks.new" ]; then
if [ ! -f "$tmp/$tag/badblocks" ]; then
@@
-143,12
+146,14
@@
if [ ! -f "$tmp/$tag/iso" ]; then
-b"$tmp/$tag/badblocks.new" "$@" "$dev" "$tmp/$tag/iso.new"
run mv "$tmp/$tag/iso.new" "$tmp/$tag/iso"
accumulate_badblocks
-b"$tmp/$tag/badblocks.new" "$@" "$dev" "$tmp/$tag/iso.new"
run mv "$tmp/$tag/iso.new" "$tmp/$tag/iso"
accumulate_badblocks
+ rm -f "$tmp/$tag/device"
case $retry in t) rm -f "$tmp/$tag/badblocks.retry" ;; esac
if [ -f "$tmp/$tag/badblocks" ]; then
fail "bad sectors found: check \`$tmp/$tag/iso', run again if ok"
fi
fi
case $retry in t) rm -f "$tmp/$tag/badblocks.retry" ;; esac
if [ -f "$tmp/$tag/badblocks" ]; then
fail "bad sectors found: check \`$tmp/$tag/iso', run again if ok"
fi
fi
+rm -f "$tmp/$tag/device"
run mv "$tmp/$tag/dest.new" "$tmp/$tag/dest"
if [ -f "$tmp/$tag/eject" ]; then eject=t; else eject=nil; fi
if [ -f "$tmp/$tag/ding" ]; then ding=t; else ding=nil; fi
run mv "$tmp/$tag/dest.new" "$tmp/$tag/dest"
if [ -f "$tmp/$tag/eject" ]; then eject=t; else eject=nil; fi
if [ -f "$tmp/$tag/ding" ]; then ding=t; else ding=nil; fi