Examples and regression test for tmexpand
Rafael Laboissiere
rafael at debian.org
Mon May 28 17:37:10 UTC 2007
As regards the examples distributed with tmexpand, it would be interesting to:
1) have the installed version installed in /usr/share/doc/tmexpand/examples
working "out-of-the-box". The makefiles should be patched like this:
--- tmexpand-0.1.2.0.orig/doc/examples/web/Makefile
+++ tmexpand-0.1.2.0/doc/examples/web/Makefile
@@ -1,7 +1,7 @@
# -*- sh -*-
-TMEXPAND = ../../bin/tmexpand
-MACRODIR = ../../macros
+TMEXPAND = /usr/bin/tmexpand
+MACRODIR = /usr/share/tmexpand/macros
TMFILES = index.tm other.tm
--- tmexpand-0.1.2.0.orig/doc/examples/Makefile
+++ tmexpand-0.1.2.0/doc/examples/Makefile
@@ -1,5 +1,5 @@
-TMEXPAND = ../bin/tmexpand
-MACRODIR = ../macros
+TMEXPAND = /usr/bin/tmexpand
+MACRODIR = /usr/share/tmexpand/macros
TMFILES = help.tm
2) add a regression test for running at build time. This could be done by
adding to the build rule in debian/rules something like:
( cd doc/examples ; \
make TMEXPAND=../../bin/tmexpand MACRODIR=../../macros )
( cd doc/examples/web ; \
make TMEXPAND=../../../bin/tmexpand MACRODIR=../../../macros )
Note that the paths in the Makefiles are wrong. Also, note that if we do
the above, then we also need to clean the directories in the clean target:
for i in "" web ; do ( cd doc/examples/$i ; make clean ) ; done
--
Rafael
More information about the Pkg-jed-devel
mailing list