diff options
Diffstat (limited to '')
-rwxr-xr-x | PolygLua.lua | 2 | ||||
-rwxr-xr-x | test_.lua | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/PolygLua.lua b/PolygLua.lua index ee775eb..727e62c 100755 --- a/PolygLua.lua +++ b/PolygLua.lua | |||
@@ -209,6 +209,8 @@ __ = function(c) | |||
209 | exe.scriptFile = os.tmpname() | 209 | exe.scriptFile = os.tmpname() |
210 | D('Creating temporary script file at ' .. exe.scriptFile) | 210 | D('Creating temporary script file at ' .. exe.scriptFile) |
211 | exe.cmd = exe.cmd .. l:sub(3) .. ' ' .. exe.scriptFile .. ' ; ' | 211 | exe.cmd = exe.cmd .. l:sub(3) .. ' ' .. exe.scriptFile .. ' ; ' |
212 | -- PHP wants this to be executable. | ||
213 | __('chmod u+x ' .. exe.scriptFile) | ||
212 | end | 214 | end |
213 | exe.script = exe.script .. l .. '\n' | 215 | exe.script = exe.script .. l .. '\n' |
214 | else | 216 | else |
@@ -121,11 +121,9 @@ __[[#!/usr/bin/perl | |||
121 | ]]:log():show():Do() | 121 | ]]:log():show():Do() |
122 | print('') | 122 | print('') |
123 | 123 | ||
124 | -- No idea why this isn't working. | 124 | __[[#!/usr/bin/env php |
125 | __[[#!/usr/bin/php | ||
126 | <?php | 125 | <?php |
127 | print("Hello world from PHP."); | 126 | print("G'day world from php.\n"); |
128 | ?> | ||
129 | ]]:log():show():Do() | 127 | ]]:log():show():Do() |
130 | print('') | 128 | print('') |
131 | 129 | ||