From ab6f838ae94d3d981fca841e24cc7eebc870a9f5 Mon Sep 17 00:00:00 2001 From: Antoine Chavasse Date: Tue, 30 Dec 2008 21:05:50 +0100 Subject: [PATCH] The path to the interpreter for the bang line is not hardcoded anymore. --- src/CMakeLists.txt | 2 ++ src/urggr.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ecbc3ff..4d3fa4d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -16,6 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # +find_program( LUA_INTERPRETER fail-lua ) + configure_file( urggr.lua ${CMAKE_CURRENT_BINARY_DIR}/urggr.lua diff --git a/src/urggr.lua b/src/urggr.lua index 6af52eb..a71fad3 100644 --- a/src/urggr.lua +++ b/src/urggr.lua @@ -1,4 +1,4 @@ -#! /usr/bin/lua +#! ${LUA_INTERPRETER} --[[ Urggr - An horizontal scrolling shoot'em up. Copyright 2008 Antoine Chavasse -- 2.11.4.GIT