[relaxngcc] 02/02: regenerate the parser after initial build
Timo Aaltonen
tjaalton-guest at moszumanska.debian.org
Tue Feb 25 15:24:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
tjaalton-guest pushed a commit to branch test
in repository relaxngcc.
commit b18cc8bc537310ae8ca7f35b77e1dd59f73f8d3a
Author: Timo Aaltonen <tjaalton at ubuntu.com>
Date: Tue Feb 25 17:24:01 2014 +0200
regenerate the parser after initial build
---
debian/patches/add-build-xml.diff | 28 +++++++++++++++++++++++++++-
debian/rules | 8 ++++++++
2 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/debian/patches/add-build-xml.diff b/debian/patches/add-build-xml.diff
index b4947ee..c2f3578 100644
--- a/debian/patches/add-build-xml.diff
+++ b/debian/patches/add-build-xml.diff
@@ -3,7 +3,7 @@ Subject: add build.xml file
--- /dev/null
+++ b/build.xml
-@@ -0,0 +1,55 @@
+@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+
+<project name="relaxngcc" default="jar">
@@ -58,4 +58,30 @@ Subject: add build.xml file
+ </jar>
+ </target>
+
++ <!-- use the built RelaxNGCC to compile the parser -->
++ <target name="ngcc">
++ <taskdef name="relaxngcc" classname="relaxngcc.ant.RelaxNGCCTask">
++ <classpath path="relaxngcc.jar"/>
++ </taskdef>
++<!-- <mkdir dir="src/relaxngcc/parser/automata"/>
++-->
++ <relaxngcc source="src/relaxngcc/parser/relaxng.rng"
++ targetdir="src/relaxngcc/parser/state"
++ automata="src/relaxngcc/parser/automata">
++ <!-- up-to-date check parameters -->
++ <depends dir="src/relaxngcc/parser" includes="relaxng.rng"/>
++ <produces dir="src/relaxngcc/parser/automata" includes="*.gif"/>
++ <produces dir="src/relaxngcc/parser/state" includes="*.java"/>
++ </relaxngcc>
++
++<!-- <mkdir dir="src/relaxngcc/datatype/parser" />
++-->
++ <relaxngcc source="src/relaxngcc/datatype/datatype.rng"
++ targetdir="src/relaxngcc/datatype/parser">
++ <!-- up-to-date check parameters -->
++ <depends dir="src/relaxngcc/datatype" includes="datatype.rng"/>
++ <produces dir="src/relaxngcc/datatype/parser" includes="*.java"/>
++ </relaxngcc>
++ </target>
++
+</project>
diff --git a/debian/rules b/debian/rules
index b419ade..f13ce59 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,6 +17,14 @@ override_dh_auto_build:
dh_auto_build -- \
-Dant.build.javac.source=1.5 \
-Dant.build.javac.target=1.5 \
+ jar
+ dh_auto_build -- \
+ -Dant.build.javac.source=1.5 \
+ -Dant.build.javac.target=1.5 \
+ ngcc
+ dh_auto_build -- \
+ -Dant.build.javac.source=1.5 \
+ -Dant.build.javac.target=1.5 \
jar \
javadoc
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/relaxngcc.git
More information about the pkg-java-commits
mailing list