groff
[Top][All Lists]
Advanced

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

[Groff] afmtodit


From: Zvi Har'El
Subject: [Groff] afmtodit
Date: Wed, 17 Jul 2002 15:07:09 +0300
User-agent: Mutt/1.4i

Hi,

The 'afmtodit' perl script starts with the line 

#! /usr/local/bin/perl -P-

with perl v5.6.1 running on my Red Hat 7.3 machine the -P option is interpreted
as a request to invoke the C preprocessor, and this results in the following
warnings each time I run afmtodit

<stdin>:144:7: invalid preprocessing directive #read
<stdin>:173:15: invalid preprocessing directive #the
<stdin>:174:15: invalid preprocessing directive #to
<stdin>:316:15: invalid preprocessing directive #always

This is a result from comment lines in the perl script:

~$ grep -n ' #' =afmtodit

144:    # read the encoding file
173:        # the PostScript character "space" is automatically mapped
174:        # to the groff character "space"; this is for grops
316:        # always put the height in to stop groff guessing

Note that these are the lines which have at least one blank before the hash
mark. Lines which start with a hash mark are OK.  I am using GNU CPP version
2.96 20000731 (Red Hat Linux 7.3 2.96-110) (cpplib) (i386 Linux/ELF). The
problem doesn't happen on my Solaris 2.8 machine, where I use the same version
of perl and GNU CPP version 2.95.3 20010315 (release) (sparc).

I am not sure why preprocessing is needed at all. Is this a remnant from a
previous incarnation? If, for some mysterious reason, it is needed, I suggest
to remove the leading blanks in the above four lines.

Thanks,

Zvi.
-- 
Dr. Zvi Har'El     mailto:address@hidden     Department of Mathematics
tel:+972-54-227607                   Technion - Israel Institute of Technology
fax:+972-4-8324654 http://www.math.technion.ac.il/~rl/     Haifa 32000, ISRAEL
"If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)
                                   Wednesday, 8 Av 5762, 17 July 2002,  2:50PM

reply via email to

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