Re: [fpc-pascal] Archive libraries

2020-08-22 Thread Darius Blaszyk via fpc-pascal
Thank you Michael! On Sat, Aug 22, 2020 at 9:31 AM Michael Van Canneyt wrote: > > > On Sat, 22 Aug 2020, Darius Blaszyk via fpc-pascal wrote: > > > On Thu, Aug 20, 2020 at 11:43 PM Darius Blaszyk > > wrote: > > > >> > >> I have done so for the xz format already. The code checks first if the >

Re: [fpc-pascal] Archive libraries

2020-08-22 Thread Michael Van Canneyt via fpc-pascal
On Sat, 22 Aug 2020, Darius Blaszyk via fpc-pascal wrote: On Thu, Aug 20, 2020 at 11:43 PM Darius Blaszyk wrote: I have done so for the xz format already. The code checks first if the utility is available and then invokes it. Potentially any other utility might be included that way.

Re: [fpc-pascal] Archive libraries

2020-08-22 Thread Darius Blaszyk via fpc-pascal
On Thu, Aug 20, 2020 at 11:43 PM Darius Blaszyk wrote: > > I have done so for the xz format already. The code checks first if the > utility is available and then invokes it. Potentially any other utility > might be included that way. However, I was hoping to include mainly native > libraries

Re: [fpc-pascal] Archive libraries

2020-08-22 Thread Darius Blaszyk via fpc-pascal
Thank you Marco! I will have a look at it. Darius On Fri, Aug 21, 2020 at 11:04 AM Marco Borsari via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > Il 20/08/2020 17:10, Darius Blaszyk via fpc-pascal ha scritto: > > > To my delight I found out that FPC actually provides quite a few

Re: [fpc-pascal] Archive libraries

2020-08-21 Thread Marco Borsari via fpc-pascal
Il 20/08/2020 17:10, Darius Blaszyk via fpc-pascal ha scritto: To my delight I found out that FPC actually provides quite a few archive handling libraries out of the box. Thanks to all that have contributed to that! So far I found: * tar * tar.gz * zip Are there any other formats out there

Re: [fpc-pascal] Archive libraries

2020-08-20 Thread Darius Blaszyk via fpc-pascal
On Thu, Aug 20, 2020 at 5:58 PM Tomas Hajny via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > bzip2 is directly supported in FPC packages as well. > I had a second look at the bzip2 unit. Unless I am missing something this unfortunately looks to be a decompression only implementation!

Re: [fpc-pascal] Archive libraries

2020-08-20 Thread Darius Blaszyk via fpc-pascal
> As a last resort, one might invoke the required archiver > executable, passing to it any necessary parameters. Far > Manager's MultiArc universal plugin works exactly that way, > and is easily configurable via invocation patterns with > macros. > I have done so for the xz format already. The

Re: [fpc-pascal] Archive libraries

2020-08-20 Thread Travis Siegel via fpc-pascal
There's also bzip2 and chm (though I don't really consider that an archive format).  I don't see anything for arj or rar though, both of which I use extensively.  Perhaps I'll see what I can do about those two.  arj should be easy enough, since unarj source is available, it should be

Re: [fpc-pascal] Archive libraries

2020-08-20 Thread Darius Blaszyk via fpc-pascal
I found it thanks! Any example for compressing to bzip2? The examples folder seems to contain two examples how to decompress, although the name would suggest otherwise. What about peazip, is there anyone on this mailing list that can tell how this software works? Does it have native pascal

Re: [fpc-pascal] Archive libraries

2020-08-20 Thread Anton Shepelev via fpc-pascal
Tomas Hajny: > There are 3rd party Pascal units supporting work with > other archive formats (mostly listing and decompression) > either using shared libraries, or containing direct > implementation of certain functionality (there has been > e.g. unrar.pas containing a port of the original C >

Re: [fpc-pascal] Archive libraries

2020-08-20 Thread Tomas Hajny via fpc-pascal
On 2020-08-20 17:10, Darius Blaszyk via fpc-pascal wrote: Hi, To my delight I found out that FPC actually provides quite a few archive handling libraries out of the box. Thanks to all that have contributed to that! So far I found: * tar * tar.gz * zip Are there any other formats out there

[fpc-pascal] Archive libraries

2020-08-20 Thread Darius Blaszyk via fpc-pascal
Hi all, To my delight I found out that FPC actually provides quite a few archive handling libraries out of the box. Thanks to all that have contributed to that! So far I found: * tar * tar.gz * zip Are there any other formats out there that I could use like out of the box? TIA! Darius