groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] `groff' options for other programs


From: Werner LEMBERG
Subject: Re: [Groff] `groff' options for other programs
Date: Sat, 27 Apr 2013 00:21:27 +0200 (CEST)

>> I think a perl program is far too heavy to search these lines in
>> groff.cpp:
>> 
>>   while ((opt = getopt_long(
>>                   argc, argv,
>>                   
>> "abcCd:D:eEf:F:gGhiI:jkK:lL:m:M:n:No:pP:r:RsStT:UvVw:W:XzZ",
>>                   long_options, NULL))
>> 
>> and to extract the string.  Letters followed with a colon have an
>> argument.
> 
> But there shouldn't be a problem to use Perl during compilation.  If
> there is no suitable `perl' program, `configure' breaks with error.
> So there will not be a `Makefile' to `make'.

OK.  Looking into the autoconf info pages, your argument is valid.
However, the following lines

  OPTS=`grep ':.*:.*:' groff.cpp \
        | sed -e 's/[",]//g'`
  OPTS_NO_ARG=`echo $OPTS \
               | sed -e 's/[a-zA-Z]://g'`
  OPTS_WITH_ARG=`echo $OPTS \
                 | sed "s/[$BAR:]//g"`

do exactly the same job...

If you insist on using perl, please do the following:

  (1) change the permissions of `read_groff_options.pl' to 644
  (2) in Makefile.sub, use $(srcdir)
  (3) don't call the script directly but use $(PERL)
  (4) fix the `make' dependencies: the output depends on `groff.cpp'
      also


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]