Hi,

John Darrington wrote:
> Would it be possible to add a feature to the gpl-[23].0 modules which
> provides the text of the GPL as a const char * ?
> 
> This would be useful for user interfaces which need to display the
> licence text

Why not reading the file at runtime? It's as simple as this:

Makefile.am:
  pkgdata_DATA = COPYING

*.c:
  license = read_file (PKGDATADIR "/COPYING", &length);
  if (license == NULL)
    license = "GPL";

read_file() is a function provided by gnulib, module 'read-file'.

Bruno





Reply via email to