changeset 12:18c28b2b2f10

Merge.
author Mikhail Kryshen <mikhail@kryshen.net>
date Tue, 24 Mar 2009 15:11:22 +0300
parents 6a5132431379 (current diff) 14fb708ebd3e (diff)
children ac5f1bc82b13
files dist/tema
diffstat 4 files changed, 17 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Sat Mar 07 19:02:36 2009 +0300
+++ b/.hgignore	Tue Mar 24 15:11:22 2009 +0300
@@ -5,5 +5,5 @@
 doc/manual/manual.html
 dist/*.jar
 dist/*.tar.gz
+dist/tema
 nbproject/private
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile-native	Tue Mar 24 15:11:22 2009 +0300
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# Compile Tema to native code using GCJ.
+#
+
+ant compile
+
+compile_classes=$(find build -name '*.class' | grep -v tema/ant)
+
+gcj -o build/demo.template.o -c --resource kryshen/tema/demo/demo.template build/kryshen/tema/demo/demo.template
+gcj -g --main=kryshen.tema.Tema -o dist/tema dist/lib/commons-cli-1.1.jar $compile_classes build/demo.template.o
+
+rm build/demo.template.o
--- a/dist/tema	Sat Mar 07 19:02:36 2009 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-java -jar tema.jar "$@"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dist/tema.sh	Tue Mar 24 15:11:22 2009 +0300
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+java -jar tema.jar "$@"