groff
[Top][All Lists]
Advanced

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

[Groff] Script Conformance with Autoconf Portability Guidelines


From: Keith Marshall
Subject: [Groff] Script Conformance with Autoconf Portability Guidelines
Date: Sat, 14 May 2005 06:08:43 +0100

Hi Werner,

In the "Portable Shell" node of "info autoconf", I see

    ... include a space after the exclamation point in interpreter
    specifications, like this:

         #! /usr/bin/perl

    If you omit the space before the path, then 4.2BSD based systems (such as
    DYNIX) will ignore the line, because they interpret `#! /' as a 4-byte
    magic number.  ...

Most of the scripts included in the groff distribution ignore this 
recommendation, so here's a patch to make them conform:

    Miscellaneous script portability enhancements.

    * aclocal.m4: (GROFF_CSH_HACK): add space in shebang prototype for
      generated conftest.sh script, conforming to portability recommendation
      in autoconf docs.
    * configure: likewise, for code generated by GROFF_CSH_HACK
    * install-sh: add space in shebang, conforming to portability
      recommendation in autoconf docs.
    * contrib/eqn2graph/eqn2graph.sh: likewise
    * contrib/gdiffmk/gdiffmk.sh: likewise
    * contrib/gdiffmk/tests/runtests.in: likewise
    * contrib/grap2graph/grap2graph.sh: likewise
    * contrib/groffer/groffer.sh: likewise
    * contrib/mm/mmroff.pl: likewise
    * contrib/mom/momdoc/appendices.html: likewise
    * contrib/pic2graph/pic2graph.sh: likewise
    * font/devps/generate/afmname: likewise
    * src/devices/xditview/ad2c: likewise
    * src/preproc/eqn/neqn.sh: likewise
    * src/roff/grog/grog.pl: likewise
    * src/roff/grog/grog.sh: likewise
    * src/roff/nroff/nroff.sh: likewise
    * PROBLEMS: likewise, in embedded script examples.

You will note that I have kept the adjustment to configure, which would 
result from the aclocal.m4 change, in the patch, (and in the above ChangeLog 
entry), although you may prefer to regenerate it, (and amend the ChangeLog 
entry accordingly), in any case.

Best regards,
Keith.

Attachment: shebang-20050514.patch.gz
Description: Script portability enhancement patch


reply via email to

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