311-magic-add-lua.dpatch 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #!/bin/sh /usr/share/dpatch/dpatch-run
  2. ## 312-magic-add-lua.dpatch by Reuben Thomas <rrt@sc3d.org> and
  3. ## Seo Sanghyeon <tinuviel@sparcs.kaist.ac.kr>
  4. ##
  5. ## DP: New magic for the Lua scripting language (Closes: #394524).
  6. @DPATCH@
  7. diff -Naur file-4.20.orig/magic/Magdir/lua file-4.20/magic/Magdir/lua
  8. --- file-4.20.orig/magic/Magdir/lua 1970-01-01 00:00:00.000000000 +0000
  9. +++ file-4.20/magic/Magdir/lua 2007-04-03 15:56:38.000000000 +0000
  10. @@ -0,0 +1,14 @@
  11. +# Type: Lua scripting language
  12. +# URL: http://www.lua.org/
  13. +# From: Reuben Thomas <rrt@sc3d.org>, Seo Sanghyeon <tinuviel@sparcs.kaist.ac.kr>
  14. +
  15. +# Lua scripts
  16. +0 string/b #!\ /usr/bin/lua Lua script text executable
  17. +0 string/b #!\ /usr/local/bin/lua Lua script text executable
  18. +0 string #!/usr/bin/env\ lua Lua script text executable
  19. +0 string #!\ /usr/bin/env\ lua Lua script text executable
  20. +
  21. +# Lua bytecode
  22. +0 string \033Lua Lua bytecode,
  23. +>4 byte 0x50 version 5.0
  24. +>4 byte 0x51 version 5.1
  25. diff -Naur file-4.20.orig/magic/Makefile.am file-4.20/magic/Makefile.am
  26. --- file-4.20.orig/magic/Makefile.am 2007-04-03 15:55:15.000000000 +0000
  27. +++ file-4.20/magic/Makefile.am 2007-04-03 15:54:51.000000000 +0000
  28. @@ -118,6 +118,7 @@
  29. Magdir/linux \
  30. Magdir/lisp \
  31. Magdir/llvm \
  32. +Magdir/lua \
  33. Magdir/mach \
  34. Magdir/macintosh \
  35. Magdir/magic \
  36. diff -Naur file-4.20.orig/magic/Makefile.in file-4.20/magic/Makefile.in
  37. --- file-4.20.orig/magic/Makefile.in 2007-04-03 15:55:15.000000000 +0000
  38. +++ file-4.20/magic/Makefile.in 2007-04-03 15:54:51.000000000 +0000
  39. @@ -258,6 +258,7 @@
  40. Magdir/linux \
  41. Magdir/lisp \
  42. Magdir/llvm \
  43. +Magdir/lua \
  44. Magdir/mach \
  45. Magdir/macintosh \
  46. Magdir/magic \
  47. diff -Naur file-4.20.orig/magic/magic.mime file-4.20/magic/magic.mime
  48. --- file-4.20.orig/magic/magic.mime 2007-04-03 15:55:15.000000000 +0000
  49. +++ file-4.20/magic/magic.mime 2007-04-03 15:54:51.000000000 +0000
  50. @@ -288,6 +288,14 @@
  51. 0 string #!\ /usr/local/bin/perl application/x-perl
  52. 0 string eval\ "exec\ /usr/local/bin/perl application/x-perl
  53. +# Type: Lua scripting language
  54. +# URL: http://www.lua.org/
  55. +# From: Reuben Thomas <rrt@sc3d.org>
  56. +0 string/B #!\ /usr/bin/lua application/x-lua
  57. +0 string/B #!\ /usr/local/bin/lua application/x-lua
  58. +0 string #!/usr/bin/env\ lua application/x-lua
  59. +0 string #!\ /usr/bin/env\ lua application/x-lua
  60. +
  61. #------------------------------------------------------------------------------
  62. # compress: file(1) magic for pure-compression formats (no archives)
  63. #