浏览代码

(Commandfile) add command 'shell'

Stefan Siegl 8 年之前
父节点
当前提交
2b2ef00072
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Commandfile

+ 6 - 0
Commandfile

@@ -31,6 +31,12 @@ command 'test',
     cd /data/build; `which gmake || which make` test NO_INTERACTION=1 REPORT_EXIT_STATUS=1
     eof
 
+command 'shell',
+  description: 'execute a PHP CLI interactive shell with V8Js loaded',
+  script: <<-eof
+    cd /data/build; php -a -d extension=modules/v8js.so
+    eof
+
 chain 'all',
   commands: [
     { command: 'phpize' },