-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtgoall.sh
executable file
·34 lines (34 loc) · 1.3 KB
/
tgoall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Test TARDIS Go on all supported targets (assuming output only via console)
# only tested on OSX
# NOTE neko vm only works on very small examples
tardisgo $* *.go
if [ "$?" = "0" ]; then
haxe -main tardis.Go -dce full -swf tardis/go.swf
#haxe -main tardis.Go -dce full -neko tardis/tardisgo.n
haxe -main tardis.Go -cp tardis -dce full -D fullunsafe -js tardis/go-fu.js
haxe -main tardis.Go -cp tardis -dce full -js tardis/go.js
haxe -main tardis.Go -cp tardis -dce full -cpp tardis/cpp
haxe -main tardis.Go -cp tardis -dce full -java tardis/java
haxe -main tardis.Go -cp tardis -dce full -cs tardis/cs
#haxe -main tardis.Go -cp tardis -dce full -php tardis/php --php-prefix tgo
echo "Neko (haxe --interp):"
haxe -main tardis.Go -cp tardis --interp
#echo "Neko (only works on very small projects):"
#neko tardis/tardisgo.n
echo "Node/JS (using fullunsafe):"
# NOTE on Linux, the line below should use nodejs rather than node
node < tardis/go-fu.js
echo "Node/JS:"
# NOTE on Linux, the line below should use nodejs rather than node
node < tardis/go.js
echo "CPP:"
./tardis/cpp/Go
echo "Java:"
java -jar tardis/java/Go.jar
echo "CS:"
mono ./tardis/cs/bin/Go.exe
#echo "PHP:"
#php tardis/php/index.php
echo "Opening swf file (Chrome as a file association for swf works to test on OSX):"
open tardis/go.swf
fi