205-magic-add-sgf.patch 872 B

123456789101112131415161718192021
  1. Author: Eduardo Sabbatella <eduardo_sabbatella@yahoo.com.ar>
  2. Description: New magic for SGF Smart Game Format
  3. diff -Naurp file.orig/magic/Magdir/games file/magic/Magdir/games
  4. --- file.orig/magic/Magdir/games 2008-04-23 19:00:59.000000000 +0000
  5. +++ file/magic/Magdir/games 2008-07-15 13:41:19.000000000 +0000
  6. @@ -243,3 +243,14 @@
  7. >&0 string n\ NetImmerse game engine file
  8. >>&0 regex [0-9a-z.]+ \b, version %s
  9. +# Type: SGF Smart Game Format
  10. +# URL: http://www.red-bean.com/sgf/
  11. +# From: Eduardo Sabbatella <eduardo_sabbatella@yahoo.com.ar>
  12. +2 regex/c \\(;.*GM\\[[0-9]{1,2}\\] Smart Game Format
  13. +>2 regex/c GM\\[1\\] - Go Game
  14. +>2 regex/c GM\\[6\\] - BackGammon Game
  15. +>2 regex/c GM\\[11\\] - Hex Game
  16. +>2 regex/c GM\\[18\\] - Amazons Game
  17. +>2 regex/c GM\\[19\\] - Octi Game
  18. +>2 regex/c GM\\[20\\] - Gess Game
  19. +>2 regex/c GM\\[21\\] - twix Game