Browse Source

new package

master
parent
commit
4e0e74faba
  1. 14
      pegjs/pegjs.patch
  2. 5
      pegjs/pegjs.sh

14
pegjs/pegjs.patch

@ -0,0 +1,14 @@
Index: bin/pegjs-main.js
--- bin/pegjs-main.js.orig 2010-06-10 09:54:23.000000000 +0200
+++ bin/pegjs-main.js 2010-08-12 10:54:19.000000000 +0200
@@ -5,8 +5,8 @@
* Rhino does not have __FILE__ or anything similar so we have to pass the
* script path from the outside.
*/
-load(arguments[0] + "/../lib/compiler.js");
-load(arguments[0] + "/../lib/metagrammar.js");
+load(arguments[0] + "/pegjs-compiler.js");
+load(arguments[0] + "/pegjs-metagrammar.js");
var FILE_STDIN = "-";
var FILE_STDOUT = "-";

5
pegjs/pegjs.sh

@ -0,0 +1,5 @@
#!/bin/sh
@l_prefix@/bin/rhino \
@l_prefix@/lib/pegjs/pegjs-main.js \
@l_prefix@/lib/pegjs \
${1+"$@"}
Loading…
Cancel
Save