diff --git a/tips/.cvsignore b/tips/.cvsignore index 07ce2af3ff..e77c664f82 100644 --- a/tips/.cvsignore +++ b/tips/.cvsignore @@ -4,6 +4,7 @@ Makefile Makefile.in POTFILES *.pot +fortunes gimp-tips.xml gimp-tips.xml.in.h messages diff --git a/tips/ChangeLog b/tips/ChangeLog index 130ef2aaf1..73a98e1791 100644 --- a/tips/ChangeLog +++ b/tips/ChangeLog @@ -1,3 +1,9 @@ +2004-08-26 Sven Neumann + + * Makefile.am + * fortunes.xsl: added simple XSL transformation to generate + fortunes for wiki.gimp.org from gimp-tips.xml.in. + 2004-08-24 Sven Neumann * Makefile.am (tips_POFILES): added pa.po (Punjabi). diff --git a/tips/Makefile.am b/tips/Makefile.am index b5d28013d7..0079714b1b 100644 --- a/tips/Makefile.am +++ b/tips/Makefile.am @@ -47,6 +47,7 @@ EXTRA_DIST = \ $(tipsdata_DATA) \ $(tips_in_files) \ gimp-tips.dtd \ + fortunes.xsl \ update.sh MAINTAINERCLEANFILES = $(GETTEXT_PACKAGE)-tips.pot $(tipsdata_DATA) @@ -86,4 +87,12 @@ if HAVE_XMLLINT ( echo "* gimp-tips.xml INVALID *"; exit 1; ) endif +fortunes: gimp-tips.xml.in fortunes.xsl +if HAVE_XSLTPROC + $(XSLTPROC) fortunes.xsl $< > $(@) || rm -f $(@) +else + @echo "xsltproc is needed to build fortunes"; exit 1; +endif + + dist-hook: validate diff --git a/tips/fortunes.xsl b/tips/fortunes.xsl new file mode 100644 index 0000000000..9321c59a0e --- /dev/null +++ b/tips/fortunes.xsl @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + * + + + + {{{ + + }}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +