home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / wodim / examples / burnstuff next >
Encoding:
Text File  |  2006-12-16  |  661 b   |  26 lines

  1. #!/bin/sh
  2. # (C) Eduard Bloch, License: BSD, 3-clause
  3. # very simple script to burn files on-the-fly in SAO mode;
  4. # either from a certain directory, or from a list with graft-points
  5. # ISO name is generated from the basename of the list/directory
  6.  
  7. set -e
  8.  
  9. case "$1" in
  10.   *.list)
  11.    name=${1%.list}
  12.    set -- -D -graft-points -path-list "$1"
  13.    ;;
  14.   *)
  15.    name="$1"
  16.    ;;
  17. esac
  18.  
  19. MOPTS=${MOPTS:-" -joliet-long -r -q -f -V $name "}
  20. COPTS=${COPTS:-" fs=64m gracetime=5 -v -sao speed=16 -eject -multi -v -force - "}
  21.  
  22. SIZE=$(genisoimage $MOPTS -print-size "$@")s
  23.  
  24. echo "genisoimage $MOPTS $@ | wodim tsize=$SIZE $COPTS"
  25. genisoimage $MOPTS "$@" | wodim tsize=$SIZE $COPTS
  26.