From 12958df7ce404bd4d8995a63d87685194c9a3402 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sun, 1 Jul 2007 20:43:58 +0000 Subject: [PATCH] * improved asciidoc.conf to install examples and doc at $docdir git-svn-id: svn://svn.opensde.net/opensde/package/trunk@21546 10447126-35f2-4685-b0cf-6dd780d3921f --- textproc/asciidoc/asciidoc.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/textproc/asciidoc/asciidoc.conf b/textproc/asciidoc/asciidoc.conf index f4939e5a7..5eeaee8cc 100644 --- a/textproc/asciidoc/asciidoc.conf +++ b/textproc/asciidoc/asciidoc.conf @@ -33,4 +33,14 @@ asciidoc_prepare() { install.sh } -hook_add premake 5 './install.sh' +hook_add postmake 5 './install.sh' + +hook_add postmake 7 'asciidoc_doc' +asciidoc_doc() { + cp -av examples doc $root$docdir + + rm $root$docdir/doc/{images,docbook-xsl.css} + ln -snf $sysconfdir/images $root$docdir/doc + ln -snf $sysconfdir/docbook-xsl.css $root$docdir/doc +} +