307-magic-add-erlang.dpatch 1.6 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 -Naurp file-4.23.orig/magic/Magdir/erlang file-4.23/magic/Magdir/erlang
  7. --- file-4.23.orig/magic/Magdir/erlang 1970-01-01 00:00:00.000000000 +0000
  8. +++ file-4.23/magic/Magdir/erlang 2008-01-12 16:55:58.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 -Naurp file-4.23.orig/magic/Makefile.am file-4.23/magic/Makefile.am
  27. --- file-4.23.orig/magic/Makefile.am 2008-01-12 16:55:37.000000000 +0000
  28. +++ file-4.23/magic/Makefile.am 2008-01-12 16:55:58.000000000 +0000
  29. @@ -82,6 +82,7 @@ Magdir/efi \
  30. Magdir/elf \
  31. Magdir/encore \
  32. Magdir/epoc \
  33. +Magdir/erlang \
  34. Magdir/esri \
  35. Magdir/fcs \
  36. Magdir/filesystems \
  37. diff -Naurp file-4.23.orig/magic/Makefile.in file-4.23/magic/Makefile.in
  38. --- file-4.23.orig/magic/Makefile.in 2008-01-12 16:55:37.000000000 +0000
  39. +++ file-4.23/magic/Makefile.in 2008-01-12 16:55:58.000000000 +0000
  40. @@ -221,6 +221,7 @@ Magdir/efi \
  41. Magdir/elf \
  42. Magdir/encore \
  43. Magdir/epoc \
  44. +Magdir/erlang \
  45. Magdir/esri \
  46. Magdir/fcs \
  47. Magdir/filesystems \