[gtk-doc] mkpdf: add mkpdf to Makefile.am and fix cleanup
- From: Stefan Kost <stefkost src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk-doc] mkpdf: add mkpdf to Makefile.am and fix cleanup
- Date: Tue, 7 Jul 2009 16:37:45 +0000 (UTC)
commit d5cfb724d76eb0223d8f6d61feef2ed7832679ac
Author: Stefan Kost <ensonic users sf net>
Date: Tue Jul 7 16:50:21 2009 +0100
mkpdf: add mkpdf to Makefile.am and fix cleanup
Makefile.am | 1 +
gtkdoc-mkpdf.in | 9 +++++++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index c337309..5853f3a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,6 +8,7 @@ bin_SCRIPTS = \
gtkdoc-mkdb \
gtkdoc-mkhtml \
gtkdoc-mkman \
+ gtkdoc-mkpdf \
gtkdoc-mktmpl \
gtkdoc-rebase \
gtkdoc-scan \
diff --git a/gtkdoc-mkpdf.in b/gtkdoc-mkpdf.in
index 93bc68c..14a92cb 100644
--- a/gtkdoc-mkpdf.in
+++ b/gtkdoc-mkpdf.in
@@ -6,6 +6,11 @@ Usage: gtkdoc-mkpdf [--path=SEARCH_PATH] MODULE DRIVER_FILE [BACKEND_OPTIONS...]
#echo "args $0\n";
+cleanexit() {
+ rm $module.fo
+ exit $1
+}
+
# parse options, ignore unknown options for future extensions
searchpath=
@@ -65,10 +70,9 @@ if $is_xml; then
@XSLTPROC@ $path_arg --nonet --xinclude \
--stringparam gtkdoc.bookname $module \
--stringparam gtkdoc.version "@VERSION@" \
- "$@" -o $module.fo $gtkdocdir/gtk-doc-fo.xsl $document || exit $?
+ "$@" -o $module.fo $gtkdocdir/gtk-doc-fo.xsl $document || cleanexit $?
# fop dies too easily :(
# @FOP@ $module.fo $module.pdf
- #rm $module.fo
else
# not very good output
# also for xxx-docs.sgml it will produce xxx-docs.pdf
@@ -76,4 +80,5 @@ else
fi
echo "timestamp" > pdf.stamp
+cleanexit 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]