
On Thu, May 08, 2008 at 04:55:56PM +1000, Peter Moulder wrote:
On Thu, May 08, 2008 at 04:43:46PM +1000, Peter Moulder wrote:
If utf8-to-roff needs -CI flags, then I'd have thought that utf8-to-roff should keep the -CI flags in its #! line (which perl honours even when not being invoked via the #! mechanism) and removed from the Makefile.
I'll try this now.
Nope, seems perl (5.8.8 at least) doesn't honour the #! line when not invoked via the #! mechanism after all.
How about the following hack instead?
Somewhat illegible first line, but it has the desired properties that it can be run with ‘./utf8-to-roff’ or with ‘perl -CI ./utf8-to-roff’.
pjrm.
--- utf8-to-roff (révision 18563) +++ utf8-to-roff (copie de travail) @@ -1,9 +1,11 @@ -#! /usr/bin/perl -w -CI +if (false && ''); then :; else exec perl -CI "$0"; fi # ') {} + # Converts a man page from utf8 (not understood by groff 1.18) to groff escapes. # I couldn't find any existing tool to convert from utf8 to groff, though I # seem to recall seeing some code to do so somewhere. # # Hereby released into public domain by Peter Moulder. +use warnings; use strict;
# Table generated automatically using: