commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbe...@apache.org
Subject svn commit: r954129 - in /commons/sandbox/gsoc/2010/scxml-js/trunk/test: testScript.sh test_with_xsltproc.sh
Date Sat, 12 Jun 2010 19:44:23 GMT
Author: jbeard
Date: Sat Jun 12 19:44:22 2010
New Revision: 954129

URL: http://svn.apache.org/viewvc?rev=954129&view=rev
Log:
Renamed testScript.sh and added logic to allow it to compile to js.

Added:
    commons/sandbox/gsoc/2010/scxml-js/trunk/test/test_with_xsltproc.sh   (contents, props
changed)
      - copied, changed from r954128, commons/sandbox/gsoc/2010/scxml-js/trunk/test/testScript.sh
Removed:
    commons/sandbox/gsoc/2010/scxml-js/trunk/test/testScript.sh

Copied: commons/sandbox/gsoc/2010/scxml-js/trunk/test/test_with_xsltproc.sh (from r954128,
commons/sandbox/gsoc/2010/scxml-js/trunk/test/testScript.sh)
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/trunk/test/test_with_xsltproc.sh?p2=commons/sandbox/gsoc/2010/scxml-js/trunk/test/test_with_xsltproc.sh&p1=commons/sandbox/gsoc/2010/scxml-js/trunk/test/testScript.sh&r1=954128&r2=954129&rev=954129&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-js/trunk/test/testScript.sh (original)
+++ commons/sandbox/gsoc/2010/scxml-js/trunk/test/test_with_xsltproc.sh Sat Jun 12 19:44:22
2010
@@ -1,3 +1,5 @@
+#!/bin/sh
+
 xsltproc ../src/xslt/ir-compiler/enumerateEvents.xsl kitchen_sink/KitchenSink_executableContent.xml
| \
 xsltproc ../src/xslt/ir-compiler/normalizeInitialStates.xsl - | \
 xsltproc ../src/xslt/ir-compiler/generateUniqueStateIds.xsl - | \
@@ -13,4 +15,9 @@ xsltproc ../src/xslt/ir-compiler/appendT
 xsltproc ../src/xslt/ir-compiler/nameTransitions.xsl - | \
 xsltproc ../src/xslt/ir-compiler/numberStatesAndTransitions.xsl - | \
 xmlindent > tmp_IR.xml;
-#xsltproc ../src/xslt/ir-compiler/StatePatternStatechartGenerator.xsl tmp_IR.xml
+
+#uncomment to compile IR to js
+#xsltproc ../src/xslt/ir-compiler/StatePatternStatechartGenerator.xsl tmp_IR.xml > out.js
+
+#uncomment to prettify js. need to have beautify.js, beautify-cl.js and beautify-html.js
in this directory
+#java -cp ../lib/java/js.jar org.mozilla.javascript.tools.shell.Main -debug beautify-cl.js
-i 4 out.js > out_pretty.js

Propchange: commons/sandbox/gsoc/2010/scxml-js/trunk/test/test_with_xsltproc.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/gsoc/2010/scxml-js/trunk/test/test_with_xsltproc.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message