|
Lines 253-258
Link Here
|
| 253 |
&& success || failure |
253 |
&& success || failure |
| 254 |
} |
254 |
} |
| 255 |
|
255 |
|
|
|
256 |
function recorddvd() { |
| 257 |
# Pay attention! It does not tested with more than 1 disk |
| 258 |
enter_stage "Writing DVD disk" |
| 259 |
start_action "$1.iso" |
| 260 |
mkdir -p "$THIS_ISOS_DIR" \ |
| 261 |
&& growisofs -Z /dev/scd0 -v -J -r -f "$THIS_LAYOUTS_DIR/$1" \ |
| 262 |
&& success || failure |
| 263 |
} |
| 264 |
|
| 256 |
function record() { |
265 |
function record() { |
| 257 |
enter_stage "Recording disks" |
266 |
enter_stage "Recording disks" |
| 258 |
start_action $"writing %s" "$1" |
267 |
start_action $"writing %s" "$1" |
|
Lines 681-686
Link Here
|
| 681 |
mkiso cd"$2" |
690 |
mkiso cd"$2" |
| 682 |
fi |
691 |
fi |
| 683 |
;; |
692 |
;; |
|
|
693 |
--recorddvd) |
| 694 |
# List it before to check whether all link targets are there: |
| 695 |
list |
| 696 |
# Make the ISO(s): |
| 697 |
if [[ -z "$2" ]]; then |
| 698 |
echo $"Making all ISOs:" |
| 699 |
for cd in "$THIS_LAYOUTS_DIR"/cd[0-9]*; do [ -d "$cd" ] && recorddvd "$(basename "$cd")"; done |
| 700 |
else |
| 701 |
recorddvd cd"$2" |
| 702 |
fi |
| 703 |
;; |
| 684 |
--record) |
704 |
--record) |
| 685 |
if [[ -z "$2" ]]; then |
705 |
if [[ -z "$2" ]]; then |
| 686 |
echo $"Writing all ISOs:" |
706 |
echo $"Writing all ISOs:" |