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