add tar/gzip to doc process

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10661 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2011-09-28 13:44:17 +00:00
parent be3c5a0d84
commit 5088278f73

View File

@ -69,7 +69,14 @@ foreach my $file (@dir) {
#print "$cmd\n";
runh2p($cmd);
}
# tar and compress
chdir($destdir);
my $date=`date +%Y%m%d%H%M`;
chop $date;
my $docname="xcat-docs-snap$date.tar";
`tar cvfj $docname html pdf`;
`gzip $docname`;
exit 0;
# Run the wget cmd and filter out some of the silly output
sub runwget {
my $cmd = shift;