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 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?
>
> I have taken the naked LZH (LH5) by Okumura-Yoshizaki from the SWAG and
> I added his historical format archive around it, though in a minimal form.
> You can find it at the link
>
> http://digilander.libero.it/oldpumpkin
>
> in the entry "Lempel-(Ziv)-Huffman arc".
> The executable herein is in Dos32 but it compiles even for Windows.
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


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. However, I was hoping to include mainly native
libraries where possible to reduce dependencies.



By calling the archive utility from the command line I am able to add more
formats easily. One thing though is that to be more robust I would like to
check the availability of the utility from the command line. One way of
doing this is using "whereis", but I was wondering if something like this
exists already in FPC?


Yes:

https://www.freepascal.org/docs-html/current/rtl/sysutils/exesearch.html

Combine with GetEnvironmentVariable():

Exists:=ExeSearch('myexe',GetEnvironmentVariable('PATH'));

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


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
> >> 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 where possible to reduce dependencies.
> >>
> >
> > By calling the archive utility from the command line I am able to add
> more
> > formats easily. One thing though is that to be more robust I would like
> to
> > check the availability of the utility from the command line. One way of
> > doing this is using "whereis", but I was wondering if something like this
> > exists already in FPC?
>
> Yes:
>
> https://www.freepascal.org/docs-html/current/rtl/sysutils/exesearch.html
>
> Combine with GetEnvironmentVariable():
>
> Exists:=ExeSearch('myexe',GetEnvironmentVariable('PATH'));
>
> Michael.
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


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 where possible to reduce dependencies.
>

By calling the archive utility from the command line I am able to add more
formats easily. One thing though is that to be more robust I would like to
check the availability of the utility from the command line. One way of
doing this is using "whereis", but I was wondering if something like this
exists already in FPC?

Rgds, Darius
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpcres now supports compilation of RC files

2020-08-22 Thread Graeme Geldenhuys via fpc-pascal
On 12/08/2020 8:16 pm, Sven Barth via fpc-pascal wrote:
> Thanks to the work of Martok the fpcres utility is now able to compile 
> RC files into RES files.

Awesome, been waiting about 15 years for that. :-) Fantastic contribution.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal