chiark / gitweb /
burn-dvd: new tool for DVD-burning, to match burn-cd
[bin.git] / burn-dvd
diff --git a/burn-dvd b/burn-dvd
new file mode 100755 (executable)
index 0000000..9ff1d5f
--- /dev/null
+++ b/burn-dvd
@@ -0,0 +1,11 @@
+#! /bin/sh
+set -e
+
+as_root_growisofs () {
+       sudo sh -c '
+               unset SUDO_COMMAND
+               export MKISOFS=/usr/bin/mkisofs
+               exec growisofs "$@"' as_root_growisofs "$@"
+}
+
+as_root_growisofs -Z /dev/dvd="$1"