You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/hermes/files/hermes-2.8-lua-shebang.patch

24 lines
514 B

diff --git a/lib/tool.lua b/lib/tool.lua
index a9124f3..8c39911 100755
--- a/lib/tool.lua
+++ b/lib/tool.lua
@@ -1,4 +1,4 @@
-#!/usr/bin/env lua
+#!@LUA@
require("strict")
function tool()
diff --git a/bin/lua_cmd b/bin/lua_cmd
index fabc5d5..32c8e13 100755
--- a/bin/lua_cmd
+++ b/bin/lua_cmd
@@ -37,7 +37,7 @@ extra=
if [ "x$LUA_PATH" != x ]; then
extra=";$LUA_PATH"
else
- extra=";`lua -e 'print(package.path)'`"
+ extra=";`@LUA@ -e 'print(package.path)'`"
fi
export LUA_PATH="$execLuaPath$extra"