summaryrefslogtreecommitdiff
path: root/misc/burnstuff
diff options
context:
space:
mode:
Diffstat (limited to 'misc/burnstuff')
-rwxr-xr-xmisc/burnstuff25
1 files changed, 25 insertions, 0 deletions
diff --git a/misc/burnstuff b/misc/burnstuff
new file mode 100755
index 0000000..ce3cf82
--- /dev/null
+++ b/misc/burnstuff
@@ -0,0 +1,25 @@
+#!/bin/sh
+# (C) Eduard Bloch, License: BSD, 3-clause
+# very simple script to burn files on-the-fly in SAO mode;
+# either from a certain directory, or from a list with graft-points
+# ISO name is generated from the basename of the list/directory
+
+set -e
+
+case "$1" in
+ *.list)
+ name=${1%.list}
+ set -- -D -graft-points -path-list "$1"
+ ;;
+ *)
+ name="$1"
+ ;;
+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=$(genisoimage $MOPTS -print-size "$@")s
+
+echo "genisoimage $MOPTS $@ | wodim tsize=$SIZE $COPTS"
+genisoimage $MOPTS "$@" | wodim tsize=$SIZE $COPTS