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
This commit is contained in:
bp-sawyers 2009-06-12 15:49:27 +00:00
parent 89c5468588
commit 7bb80cfd38

View File

@ -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