305-magic-add-lua.dpatch 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/bin/sh /usr/share/dpatch/dpatch-run
  2. ## 32-magic-add-lua.dpatch by Reuben Thomas <rrt@sc3d.org>
  3. ##
  4. ## DP: New magic for the Lua scripting language (Closes: #394524).
  5. @DPATCH@
  6. diff -Naur file-4.20.orig/magic/Magdir/lua file-4.20/magic/Magdir/lua
  7. --- file-4.20.orig/magic/Magdir/lua 1970-01-01 00:00:00.000000000 +0000
  8. +++ file-4.20/magic/Magdir/lua 2007-03-27 17:56:43.000000000 +0000
  9. @@ -0,0 +1,10 @@
  10. +
  11. +#------------------------------------------------------------------------------
  12. +# lua: file(1) magic for Lua
  13. +#
  14. +# From: Reuben Thomas <rrt@sc3d.org>
  15. +0 string/b #!\ /usr/bin/lua Lua script text executable
  16. +0 string/b #!\ /usr/local/bin/lua Lua script text executable
  17. +0 string #!/usr/bin/env\ lua Lua script text executable
  18. +0 string #!\ /usr/bin/env\ lua Lua script text executable
  19. +
  20. diff -Naur file-4.20.orig/magic/Makefile.am file-4.20/magic/Makefile.am
  21. --- file-4.20.orig/magic/Makefile.am 2007-03-27 17:56:21.000000000 +0000
  22. +++ file-4.20/magic/Makefile.am 2007-03-27 17:56:57.000000000 +0000
  23. @@ -116,6 +116,7 @@
  24. Magdir/linux \
  25. Magdir/lisp \
  26. Magdir/llvm \
  27. +Magdir/lua \
  28. Magdir/mach \
  29. Magdir/macintosh \
  30. Magdir/magic \
  31. diff -Naur file-4.20.orig/magic/Makefile.in file-4.20/magic/Makefile.in
  32. --- file-4.20.orig/magic/Makefile.in 2007-03-27 17:56:21.000000000 +0000
  33. +++ file-4.20/magic/Makefile.in 2007-03-27 17:57:03.000000000 +0000
  34. @@ -256,6 +256,7 @@
  35. Magdir/linux \
  36. Magdir/lisp \
  37. Magdir/llvm \
  38. +Magdir/lua \
  39. Magdir/mach \
  40. Magdir/macintosh \
  41. Magdir/magic \
  42. diff -Naur file-4.20.orig/magic/magic.mime file-4.20/magic/magic.mime
  43. --- file-4.20.orig/magic/magic.mime 2007-03-27 17:56:21.000000000 +0000
  44. +++ file-4.20/magic/magic.mime 2007-03-27 17:56:43.000000000 +0000
  45. @@ -288,6 +288,13 @@
  46. 0 string #!\ /usr/local/bin/perl application/x-perl
  47. 0 string eval\ "exec\ /usr/local/bin/perl application/x-perl
  48. +# For the Lua scripting language (http://www.lua.org/)
  49. +# Reuben Thomas <rrt@sc3d.org>
  50. +0 string/B #!\ /usr/bin/lua application/x-lua
  51. +0 string/B #!\ /usr/local/bin/lua application/x-lua
  52. +0 string #!/usr/bin/env\ lua application/x-lua
  53. +0 string #!\ /usr/bin/env\ lua application/x-lua
  54. +
  55. #------------------------------------------------------------------------------
  56. # compress: file(1) magic for pure-compression formats (no archives)
  57. #