215-magic-update-spectrum.dpatch 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh /usr/share/dpatch/dpatch-run
  2. ## 215-magic-update-spectrum.dpatch by Philip Kendall <pak21@srcf.ucam.org>
  3. ##
  4. ## DP: Adding additional magics (Closes: #296202).
  5. @DPATCH@
  6. diff -Naur file-4.20.orig/magic/Magdir/spectrum file-4.20/magic/Magdir/spectrum
  7. --- file-4.20.orig/magic/Magdir/spectrum 2003-05-23 21:05:59.000000000 +0000
  8. +++ file-4.20/magic/Magdir/spectrum 2007-03-27 16:55:24.000000000 +0000
  9. @@ -31,14 +31,19 @@
  10. # TZX tape images
  11. 0 string ZXTape!\x1a Spectrum .TZX data
  12. >8 byte x version %d
  13. ->9 byte x .%d
  14. +>9 byte x \b.%d
  15. # RZX input recording files
  16. 0 string RZX! Spectrum .RZX data
  17. >4 byte x version %d
  18. ->5 byte x .%d
  19. +>5 byte x \b.%d
  20. -# And three sorts of disk image
  21. +# Floppy disk images
  22. 0 string MV\ -\ CPCEMU\ Disk-Fil Amstrad/Spectrum .DSK data
  23. 0 string MV\ -\ CPC\ format\ Dis Amstrad/Spectrum DU54 .DSK data
  24. 0 string EXTENDED\ CPC\ DSK\ Fil Amstrad/Spectrum Extended .DSK data
  25. +0 string SINCLAIR Spectrum .SCL Betadisk image
  26. +
  27. +# Hard disk images
  28. +0 string RS-IDE\x1a Spectrum .HDF hard disk image
  29. +>7 byte x \b, version 0x%02x