aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordvs12024-10-28 13:37:20 +1000
committerdvs12024-10-28 13:37:20 +1000
commitf220cac192399c74d0309f75d8e3963ab7702cd6 (patch)
treedbeb1e45203d72fcb9718be2b3a041c1d43d93b5
parentThis is documenting STOP not stop. (diff)
downloadJackOnAllDevices-f220cac192399c74d0309f75d8e3963ab7702cd6.zip
JackOnAllDevices-f220cac192399c74d0309f75d8e3963ab7702cd6.tar.gz
JackOnAllDevices-f220cac192399c74d0309f75d8e3963ab7702cd6.tar.bz2
JackOnAllDevices-f220cac192399c74d0309f75d8e3963ab7702cd6.tar.xz
Fix the PHP example.
Diffstat (limited to '')
-rwxr-xr-xPolygLua.lua2
-rwxr-xr-xtest_.lua6
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
diff --git a/test_.lua b/test_.lua
index a589a00..80e1786 100755
--- a/test_.lua
+++ b/test_.lua
@@ -121,11 +121,9 @@ __[[#!/usr/bin/perl
121]]:log():show():Do() 121]]:log():show():Do()
122print('') 122print('')
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()
130print('') 128print('')
131 129