From 1957e9ed3402120f4868dcea04abb51ceb44df30 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Tue, 28 Apr 2009 17:37:59 +0100 Subject: [PATCH] Build virt-inspector HTML for the website. --- .gitignore | 1 + Makefile.am | 4 +++- inspector/Makefile.am | 10 ++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d67bddd..14cada4 100644 --- a/.gitignore +++ b/.gitignore @@ -40,6 +40,7 @@ guestfs.3 html/guestfish.1.html html/guestfs.3.html html/recipes.html +html/virt-inspector.1.html initramfs initramfs.timestamp initramfs.*.img diff --git a/Makefile.am b/Makefile.am index 68934b9..a65c9d7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -151,7 +151,9 @@ html/recipes.html: $(wildcard recipes/*.sh) $(wildcard recipes/*.html) $(wildcar sh make-recipes.sh recipes/*.sh > $@-t mv $@-t $@ -website: html/guestfs.3.html html/guestfish.1.html html/recipes.html +website: html/guestfs.3.html html/guestfish.1.html \ + html/virt-inspector.1.html \ + html/recipes.html cp $^ html/pod.css html/recipes.css \ $(HOME)/d/redhat/et-website/libguestfs/ diff --git a/inspector/Makefile.am b/inspector/Makefile.am index 12eed1b..394489b 100644 --- a/inspector/Makefile.am +++ b/inspector/Makefile.am @@ -25,6 +25,8 @@ if HAVE_INSPECTOR man_MANS = virt-inspector.1 +noinst_DATA = ../html/virt-inspector.1.html + virt-inspector.1: virt-inspector.pl $(POD2MAN) \ --section 1 \ @@ -32,6 +34,14 @@ virt-inspector.1: virt-inspector.pl --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \ $< > $@ +../html/virt-inspector.1.html: virt-inspector.pl + cd .. && pod2html \ + --css 'pod.css' \ + --title 'virt-inspector, display OS version, kernel, drivers, mount points, applications, etc. in a virtual machine' \ + --htmldir html \ + --outfile html/virt-inspector.1.html \ + inspector/$< + install-data-hook: mkdir -p $(DESTDIR)$(bindir) install -m 0755 virt-inspector.pl $(DESTDIR)$(bindir)/virt-inspector -- 1.8.3.1