From 9e86010ce13b72921b4887b235d209adc6d263b7 Mon Sep 17 00:00:00 2001 From: rjones Date: Thu, 19 Mar 2009 15:09:19 +0000 Subject: [PATCH] Build manual page. --- .cvsignore | 11 +++++++++++ Makefile.am | 24 ++++++++++++++++++++++++ autogen.sh | 5 +++++ configure.ac | 2 +- 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100755 autogen.sh diff --git a/.cvsignore b/.cvsignore index 68734ff..1d61e52 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1,13 @@ +Makefile.in +Makefile +aclocal.m4 +autom4te.cache +config.h.in +config.h +config.log +config.status +configure febootstrap febootstrap.8 +febootstrap.txt +stamp-h1 diff --git a/Makefile.am b/Makefile.am index 81c874a..24328b3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,3 +16,27 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # Written by Richard W.M. Jones + +bin_SCRIPTS = febootstrap + +febootstrap: febootstrap.sh + rm -f $@ + cp $< $@-t + chmod 0755 $@-t + mv $@-t $@ + +man_MANS = febootstrap.8 + +if HAVE_PERLDOC +febootstrap.8: febootstrap.pod + pod2man \ + --section 8 \ + -c "Virtualization Support" \ + --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \ + $< > $@ + +febootstrap.txt: febootstrap.pod + pod2text $< > $@ +endif + +EXTRA_DIST = febootstrap.8 febootstrap.txt diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..32f085b --- /dev/null +++ b/autogen.sh @@ -0,0 +1,5 @@ +#!/bin/sh - + +export AUTOMAKE='automake --foreign --add-missing' +autoreconf +./configure "$@" diff --git a/configure.ac b/configure.ac index 169617c..9df1cc4 100644 --- a/configure.ac +++ b/configure.ac @@ -27,7 +27,7 @@ AC_CHECK_PROG(PERLDOC,[perldoc],[perldoc],[no]) if test "x$PERLDOC" = "xno" ; then AC_MSG_WARN([perldoc not found - install perl to make man pages]) fi -AM_CONDITIONAL(PERLDOC,[test "$perldoc" != "no"]) +AM_CONDITIONAL(HAVE_PERLDOC,[test "$perldoc" != "no"]) AC_CHECK_PROG(FAKEROOT,[fakeroot],[fakeroot],[no]) if test "x$FAKEROOT" = "xno" ; then -- 1.8.3.1