From 5088278f7312b6a98818f1fc184dbcb8efd0670c Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 28 Sep 2011 13:44:17 +0000 Subject: [PATCH] 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 --- xCAT-client/bin/getxcatdocs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xCAT-client/bin/getxcatdocs b/xCAT-client/bin/getxcatdocs index 4928e83b6..92e7112c8 100755 --- a/xCAT-client/bin/getxcatdocs +++ b/xCAT-client/bin/getxcatdocs @@ -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;