From bed4fe8630d2f9f74caf645172ada370b54ec28b Mon Sep 17 00:00:00 2001 From: bp-sawyers Date: Fri, 29 Feb 2008 12:44:03 +0000 Subject: [PATCH] Fixed man page build on aix. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@629 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT-2.0/db2man | 1 + perl-xCAT-2.0/perl-xCAT.spec | 2 +- xCAT-client-2.0/xCAT-client.spec | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/perl-xCAT-2.0/db2man b/perl-xCAT-2.0/db2man index 161f6df84..effddd106 100755 --- a/perl-xCAT-2.0/db2man +++ b/perl-xCAT-2.0/db2man @@ -61,6 +61,7 @@ EOS2 foreach my $a (@$colorder) { my $d = $descriptions->{$a}; + $d =~ s/\n/\n\n/; # if there are newlines, double them so pod sees a blank line, otherwise pod will ignore them print FILE "\nI<$a> - $d\n"; } diff --git a/perl-xCAT-2.0/perl-xCAT.spec b/perl-xCAT-2.0/perl-xCAT.spec index 70dcd8b0e..dc51a67a4 100644 --- a/perl-xCAT-2.0/perl-xCAT.spec +++ b/perl-xCAT-2.0/perl-xCAT.spec @@ -32,7 +32,7 @@ Includes xCAT::Table, xCAT::NodeRange, among others. # Convert pods to man pages, e.g.: pod2man pods/man5/chain.5.pod share/man/man5/chain.1 for i in pods/*/*.pod; do - man=${i/pods/share\/man} + man="share/man${i#pods}" # the substitute form is not supported on aix: ${i/pods/share\/man} mkdir -p ${man%/*} pod2man $i ${man%.pod} done diff --git a/xCAT-client-2.0/xCAT-client.spec b/xCAT-client-2.0/xCAT-client.spec index e0f4aafa5..6c1372926 100644 --- a/xCAT-client-2.0/xCAT-client.spec +++ b/xCAT-client-2.0/xCAT-client.spec @@ -30,7 +30,7 @@ xCAT-client provides the fundamental xCAT commands (chtab, chnode, rpower, etc) # Convert pods to man pages, e.g.: pod2man pods/man1/tabdump.1.pod share/man/man1/tabdump.1 for i in pods/*/*.pod; do - man=${i/pods/share\/man} + man="share/man${i#pods}" # the substitute form is not supported on aix: ${i/pods/share\/man} mkdir -p ${man%/*} pod2man $i ${man%.pod} done