From d7e6ef35b97ec04b368348f113d7247a6ba4cae0 Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Tue, 25 Apr 2000 02:38:25 +0000 Subject: [PATCH] Just some doc updates, not in the build --- build/mac/MozJar.pm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/build/mac/MozJar.pm b/build/mac/MozJar.pm index 6432a316476..034e5e7b824 100644 --- a/build/mac/MozJar.pm +++ b/build/mac/MozJar.pm @@ -3,7 +3,22 @@ package MozJar; require 5.004; +=head1 NAME +B - Routines for creating and managing jar files in MacPerl. + +=head1 SYNOPSIS + + use MozJar; + + CreateJarFile("$chrome_dir:communicator", "$chrome_dir:communicator.jar"); + +=head1 DESCRIPTION + +B is a utility module that uses Archive::Zip (which in turn requires +Compress::Zlib) to create jar files. + +=cut use strict; use Archive::Zip; @@ -59,6 +74,15 @@ sub _addDirToJar($$$$) } } +=head2 Creating jar files - C + +Call C to make a new jar file at the location specified by +C<$jarpath>, into which will be stored the files and directories under C<$srcdir>. + +The file and directory paths inside the jar file are created relative to C<$srcdir>. + +=cut + sub CreateJarFile($$) { my($srcdir, $jarpath, $compress) = @_;