--- distribute.old 2002-12-18 16:48:27 +0300 +++ distribute 2004-05-27 15:10:03 +0400 @@ -253,6 +253,15 @@ && success || failure } +function recorddvd() { +# Pay attention! It does not tested with more than 1 disk + enter_stage "Writing DVD disk" + start_action "$1.iso" + mkdir -p "$THIS_ISOS_DIR" \ + && growisofs -Z /dev/scd0 -v -J -r -f "$THIS_LAYOUTS_DIR/$1" \ + && success || failure +} + function record() { enter_stage "Recording disks" start_action $"writing %s" "$1" @@ -681,6 +690,17 @@ mkiso cd"$2" fi ;; +--recorddvd) + # List it before to check whether all link targets are there: + list + # Make the ISO(s): + if [[ -z "$2" ]]; then + echo $"Making all ISOs:" + for cd in "$THIS_LAYOUTS_DIR"/cd[0-9]*; do [ -d "$cd" ] && recorddvd "$(basename "$cd")"; done + else + recorddvd cd"$2" + fi + ;; --record) if [[ -z "$2" ]]; then echo $"Writing all ISOs:"