* demo/xml2doc/Makefile.am: Add templates in distribution.
* demo/xml2doc/datarootdir.hh.in: Fix path.
---
scribo/ChangeLog | 8 ++++++++
scribo/demo/xml2doc/Makefile.am | 18 ++++++++++++++++--
scribo/demo/xml2doc/datarootdir.hh.in | 2 +-
3 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index a6d9e17..e8d0b70 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,13 @@
2012-05-23 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Fix access to xsl templates.
+
+ * demo/xml2doc/Makefile.am: Add templates in distribution.
+
+ * demo/xml2doc/datarootdir.hh.in: Fix path.
+
+2012-05-23 Guillaume Lazzara <z(a)lrde.epita.fr>
+
* demo/viewer/runner.cc: Fix libexec path.
2012-05-22 Guillaume Lazzara <z(a)lrde.epita.fr>
diff --git a/scribo/demo/xml2doc/Makefile.am b/scribo/demo/xml2doc/Makefile.am
index c3e0d1c..ff37fa2 100644
--- a/scribo/demo/xml2doc/Makefile.am
+++ b/scribo/demo/xml2doc/Makefile.am
@@ -1,5 +1,5 @@
-# Copyright (C) 2010, 2011 EPITA Research and Development Laboratory
-# (LRDE).
+# Copyright (C) 2010, 2011, 2012 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -71,3 +71,17 @@ EXTRA_DIST = \
README \
datarootdir.hh.in
+templatedir = $(pkgdatadir)/scribo/
+nobase_dist_template_DATA = \
+ $(srcdir)/templates/bin/ooconvert \
+ $(srcdir)/templates/html/css.css \
+ $(srcdir)/templates/html/main.xsl \
+ $(srcdir)/templates/html/main_base64.xsl \
+ $(srcdir)/templates/opendoc/css.css \
+ $(srcdir)/templates/opendoc/xsl.xsl \
+ $(srcdir)/templates/pdf/line.xsl \
+ $(srcdir)/templates/pdf/main.xsl \
+ $(srcdir)/templates/pdf/regions.xsl \
+ $(srcdir)/templates/svg/line.xsl \
+ $(srcdir)/templates/svg/main.xsl \
+ $(srcdir)/templates/svg/regions.xsl
\ No newline at end of file
diff --git a/scribo/demo/xml2doc/datarootdir.hh.in
b/scribo/demo/xml2doc/datarootdir.hh.in
index 88371f9..056381f 100644
--- a/scribo/demo/xml2doc/datarootdir.hh.in
+++ b/scribo/demo/xml2doc/datarootdir.hh.in
@@ -27,7 +27,7 @@
# define SCRIBO_DEMO_XML2DOC_DATAROOTDIR_HH
-# define SCRIBO_PREFIX_DATAROOTDIR "@datarootdir@/scribo"
+# define SCRIBO_PREFIX_DATAROOTDIR "@datarootdir@/olena/scribo"
# define SCRIBO_LOCAL_DATAROOTDIR "@abs_srcdir@"
--
1.7.2.5