groff
[Top][All Lists]
Advanced

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

Re: [Groff] GNU troff in OpenBSD


From: Ingo Schwarze
Subject: Re: [Groff] GNU troff in OpenBSD
Date: Sun, 16 Oct 2011 17:54:38 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

Werner LEMBERG wrote on Wed, Mar 30, 2011 at 09:31:02PM +0200:
> Ingo Schwarze wrote:

>>  * patch-contrib_hdtbl_Makefile_sub (This one will definitely need a
>>    different fix upstream, in case you see a problem there.)

> If you find a better patch to remove the dependency on bash I'm glad
> to incorporate it.

I just noticed that this is apparently rather trivial;
it looks like the author doesn't actually use any genuine
bash features, and using bash instead of the POSIX shell
probably is a gratuitious GNUism.

The following unbreaks the build without bash for me,
and formats the hdtbl examples in a reasonable way.
Tested with the native (pd)ksh in POSIX compatibility
mode (i.e. called as /bin/sh) on OpenBSD -current.

Yours,
  Ingo


--- contrib/hdtbl/examples/common.roff.orig     Fri Dec 31 08:33:09 2010
+++ contrib/hdtbl/examples/common.roff  Sun Oct 16 17:26:22 2011
@@ -65,7 +65,7 @@ along with this program. If not, see <http://www.gnu.o
 .\"    **      for example "Sun Dec  5 22:27:57     2004"              **
 .\"    ******************************************************************
 .de date
-.  pso bash -c "echo -n .ds *date\ ;date"
+.  pso /bin/sh -c "echo -n .ds *date\ ;date"
 .  tm \\*[*date] ***
 ..
 .
@@ -83,9 +83,9 @@ along with this program. If not, see <http://www.gnu.o
 .  ds * \\$1\"
 .  substring * 0 0
 .  ie "\\*[*]"s" \
-.    pso bash -c "echo -n .nr *time 0+;date +%s"
+.    pso /bin/sh -c "echo -n .nr *time 0+;date +%s"
 .  el \{\
-.   pso bash -c "echo -n .nr *time -;date +%s"
+.   pso /bin/sh -c "echo -n .nr *time -;date +%s"
 .   nr *time 0-\\n[*time]
 .   tm elapsed time: \\n[*time] seconds
 .  \}
--- contrib/hdtbl/examples/fonts_n.in.orig      Fri Dec 31 08:33:09 2010
+++ contrib/hdtbl/examples/fonts_n.in   Sun Oct 16 17:24:39 2011
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.o
 .  el \
 .    ds *args \\n[.fn]
 .
-.  pso bash -c \
+.  pso /bin/sh -c \
        "echo -n .ds *f\ ; \
         ls \\*[fontpath]/dev\*[.T] \
         | tr '[:cntrl:]' ' '"
--- contrib/hdtbl/examples/fonts_x.in.orig      Fri Dec 31 08:33:09 2010
+++ contrib/hdtbl/examples/fonts_x.in   Sun Oct 16 17:24:59 2011
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.o
 .  el \
 .    ds *args \\n[.fn]
 .
-.  pso bash -c \
+.  pso /bin/sh -c \
        "echo -n .ds *f\ ; \
         ls \\*[fontpath]/dev\*[.T] \
         | tr '[:cntrl:]' ' '"



reply via email to

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