# This deco extension unpacks .st disk images. # .st disk images are sector-by-sector raw images (e.g. from dd) of # Atari ST floppy disks. As long as the image file is intact and the disk # image has a recognisable FAT filesystem on it (which is untrue for some # games, demos and "CD" disks) then the files should be unpacked OK. # Dependencies: # mtools (tested on mcopy version 3.9.9) # deco count_files function decompress() { beforefiles="`count_files .`" # keep a record of how many files we have MTOOLS_SKIP_CHECK=1 mcopy -i "${1}" \ -s -p -n ${Verbose+-v} ::. . eval "case \`count_files .\` in ${beforefiles}) exit 1 ;; # mtools succeeds even if no files were esac" # extracted, so we signal an error }