307-magic-add-erlang.dpatch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/bin/sh /usr/share/dpatch/dpatch-run
  2. ## 308-magic-add-erlang.dpatch
  3. ##
  4. ## DP: New magic for Erlang BEAM and JAM files (Closes: #388356).
  5. @DPATCH@
  6. diff -Naur file-4.20.orig/magic/Magdir/erlang file-4.20/magic/Magdir/erlang
  7. --- file-4.20.orig/magic/Magdir/erlang 1970-01-01 00:00:00.000000000 +0000
  8. +++ file-4.20/magic/Magdir/erlang 2007-04-03 15:36:54.000000000 +0000
  9. @@ -0,0 +1,16 @@
  10. +# Type: Erlang JAM and BEAM files
  11. +# URL: http://www.erlang.org/faq/x779.html#AEN812
  12. +
  13. +# OTP R3-R4
  14. +0 string \0177BEAM! Old Erlang BEAM file
  15. +>6 short >0 - version %d
  16. +
  17. +# OTP R5 and onwards
  18. +0 string FOR1
  19. +>8 string BEAM Erlang BEAM file
  20. +
  21. +# 4.2 version may have a copyright notice!
  22. +4 string Tue Jan 22 14:32:44 MET 1991 Erlang JAM file - version 4.2
  23. +79 string Tue Jan 22 14:32:44 MET 1991 Erlang JAM file - version 4.2
  24. +
  25. +4 string 1.0 Fri Feb 3 09:55:56 MET 1995 Erlang JAM file - version 4.3
  26. diff -Naur file-4.20.orig/magic/Makefile.am file-4.20/magic/Makefile.am
  27. --- file-4.20.orig/magic/Makefile.am 2006-11-25 18:36:10.000000000 +0000
  28. +++ file-4.20/magic/Makefile.am 2007-04-03 15:33:45.000000000 +0000
  29. @@ -80,6 +80,7 @@
  30. Magdir/elf \
  31. Magdir/encore \
  32. Magdir/epoc \
  33. +Magdir/erlang \
  34. Magdir/esri \
  35. Magdir/fcs \
  36. Magdir/filesystems \
  37. diff -Naur file-4.20.orig/magic/Makefile.in file-4.20/magic/Makefile.in
  38. --- file-4.20.orig/magic/Makefile.in 2007-03-01 23:21:09.000000000 +0000
  39. +++ file-4.20/magic/Makefile.in 2007-04-03 15:33:57.000000000 +0000
  40. @@ -220,6 +220,7 @@
  41. Magdir/elf \
  42. Magdir/encore \
  43. Magdir/epoc \
  44. +Magdir/erlang \
  45. Magdir/esri \
  46. Magdir/fcs \
  47. Magdir/filesystems \