You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2006/10/10 17:36:19 UTC

svn commit: r454783 - /xerces/c/trunk/scripts/packageSources.pl

Author: cargilld
Date: Tue Oct 10 08:36:18 2006
New Revision: 454783

URL: http://svn.apache.org/viewvc?view=rev&rev=454783
Log:
compress documentation

Modified:
    xerces/c/trunk/scripts/packageSources.pl

Modified: xerces/c/trunk/scripts/packageSources.pl
URL: http://svn.apache.org/viewvc/xerces/c/trunk/scripts/packageSources.pl?view=diff&rev=454783&r1=454782&r2=454783
==============================================================================
--- xerces/c/trunk/scripts/packageSources.pl (original)
+++ xerces/c/trunk/scripts/packageSources.pl Tue Oct 10 08:36:18 2006
@@ -408,6 +408,22 @@
 
    pchdir( $xercescroot );
    psystem( $doc_cmd );
+   
+   print "\nCOMPRESS DOCS\n\n";
+
+   pchdir( $xercescroot );
+
+   if ( $^O =~ /win/i ) {
+      psystem ( "zip -qr ${packages}-doc\.zip doc" );
+   } else {
+      psystem ( "tar -cf ${packages}-doc\.tar doc" );
+      psystem ( "gzip ${packages}-doc\.tar" );
+   }
+   
+   pchdir( $xercescroot . $fs . doc);
+   psystem ('rm -rf *');
+   pchdir( $xercescroot );
+   psystem ('mv ${packages}-doc* doc) 
 
    print "\nDELETING FILES\n\n";
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org