From 2abfaffd2dc73af57053ea85987968060d029dfd Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Wed, 15 Dec 2004 19:52:41 +0000 Subject: - more docs --- Packdrakeng.pm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Packdrakeng.pm b/Packdrakeng.pm index 11b93c5..aa271d5 100644 --- a/Packdrakeng.pm +++ b/Packdrakeng.pm @@ -771,6 +771,33 @@ Options are same than the C function. =back +=item Badd_virtual($type, $filename, $data)> + +Add a file into archive according passed information. + +$type gives the type of the file: + +- 'd', the file will be a directory, store as '$filename'. $data is not use; +- 'l', the file will be a symlink named $filename, pointing to the file whose path + is given by the string $data; +- 'f', the file is a normal file, $filename will be its name, $data is an handle to + open file, data will be read from current position to the end of file. + +=item Badd($prefix, @files)> + +Add @files into archive located into $prefix. Only directory, files and symlink +will be added. For each file, the path should be relative to $prefix and is +stored as is. + +=item Bextract_virtual(*HANDLE, $filename)> + +Extract $filename data from archive into the *HANDLE. $filename should be a +normal file. + +=item Bextract($destdir, @files)> + +Extract @files from the archive into $destdir prefix. + =head1 AUTHOR Olivier Thauvin -- cgit v1.2.1