From 7bb80cfd38a67a674baa4877db29de283c8f85e8 Mon Sep 17 00:00:00 2001 From: bp-sawyers Date: Fri, 12 Jun 2009 15:49:27 +0000 Subject: [PATCH] Update buildcore.sh to extract and upload html man pages to sf git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3561 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- buildcore.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/buildcore.sh b/buildcore.sh index 8d4d1abf4..ef61b4db6 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -187,3 +187,14 @@ if [ "$1" = "promote" -a "$1" != "devel" ]; then else scp $TARNAME $UPLOADUSER,xcat@web.sourceforge.net:htdocs/yum/$REL/ fi + +# Extract and upload the man pages in html format +if [ "$1" != "promote" ]; then + mkdir -p man + cd man + rm -rf opt + rpm2cpio ../$CORE/xCAT-client-*.noarch.rpm | cpio -id '*.html' + rpm2cpio ../$CORE/perl-xCAT-*.noarch.rpm | cpio -id '*.html' + scp -r opt/xcat/share/doc/man1 opt/xcat/share/doc/man3 opt/xcat/share/doc/man5 opt/xcat/share/doc/man7 opt/xcat/share/doc/man8 $UPLOADUSER,xcat@web.sourceforge.net:htdocs/ + cd .. +fi