Skip to content

Commit

Permalink
misc/burnstuff: use genisoimage rather than mkisofs.
Browse files Browse the repository at this point in the history
Also case instead of if, and a single echo instead of a full set -x.


git-svn-id: svn://svn.debian.org/debburn/cdrkit/trunk@624 a95a6be8-091b-0410-adaf-d31e6857962f
  • Loading branch information
peters-guest committed Dec 16, 2006
1 parent 6896e0a commit 02d122c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions misc/burnstuff
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@
# ISO name is generated from the basename of the list/directory

set -e
set -x

if echo "$1" | grep -q .list$ ; then
case "$1" in
*.list)
name=${1%.list}
set -- -D -graft-points -path-list "$1"
else
;;
*)
name="$1"
fi
;;
esac

MOPTS=${MOPTS:-" -joliet-long -r -q -f -V $name "}
COPTS=${COPTS:-" fs=64m gracetime=5 -v -sao speed=16 -eject -multi -v -force - "}

SIZE=$(mkisofs $MOPTS -print-size "$@")s
SIZE=$(genisoimage $MOPTS -print-size "$@")s

mkisofs $MOPTS "$@" | wodim tsize=$SIZE $COPTS
echo "genisoimage $MOPTS $@ | wodim tsize=$SIZE $COPTS"
genisoimage $MOPTS "$@" | wodim tsize=$SIZE $COPTS

0 comments on commit 02d122c

Please sign in to comment.