Hello,

Attached is a small patch that removes the bash dependency which makes
stuff work on non-GNU systems and might speed things up for Ubuntu
(although it hardly matters).

There's also a bug in one of the hdtbl examples, that I'm unable to fix
(I don't really speak roff):

groff /usr/home/uqs/groff/work/groff-1.21/src/roff/troff 
/usr/home/uqs/groff/work/groff-1.21/src/preproc/eqn 
/usr/home/uqs/groff/work/groff-1.21/src/preproc/pic 
/usr/home/uqs/groff/work/groff-1.21/src/preproc/tbl 
/usr/home/uqs/groff/work/groff-1.21/src/devices/grops | sed -e 's|  *|:|g'`; 
export GROFF_BIN_PATH; /usr/home/uqs/groff/work/groff-1.21/src/roff/groff/groff 
-F/usr/home/uqs/groff/work/groff-1.21/font 
-F/usr/home/uqs/groff/work/groff-1.21/font 
-M/usr/home/uqs/groff/work/groff-1.21/tmac 
-M/usr/home/uqs/groff/work/groff-1.21/tmac -M. -t -p -e -U -Tps 
-dfontpath=/usr/home/uqs/groff/work/groff-1.21/font -dsopath=./ \
                 -mhdtbl examples/color_nested_tables.roff 
>examples/color_nested_tables.ps
elapsed time: 0 seconds
elapsed time: 0 seconds
hdtbl: Not all tables have been printed.
       Add `.bp' at the end of your document.

If you then take a look at the document, it only has one table and is
missing the second. Not sure why and no idea how to fix ...

Regards,
Uli
--- contrib/hdtbl/examples/common.roff.orig     2011-01-14 13:33:12.190888414 
+0100
+++ contrib/hdtbl/examples/common.roff  2011-01-14 13:33:20.480831318 +0100
@@ -65,7 +65,7 @@
 .\"    **      for example "Sun Dec  5 22:27:57     2004"              **
 .\"    ******************************************************************
 .de date
-.  pso bash -c "echo -n .ds *date\ ;date"
+.  pso sh -c "echo -n .ds *date\ ;date"
 .  tm \\*[*date] ***
 ..
 .
@@ -83,9 +83,9 @@
 .  ds * \\$1\"
 .  substring * 0 0
 .  ie "\\*[*]"s" \
-.    pso bash -c "echo -n .nr *time 0+;date +%s"
+.    pso sh -c "echo -n .nr *time 0+;date +%s"
 .  el \{\
-.   pso bash -c "echo -n .nr *time -;date +%s"
+.   pso 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      2011-01-14 13:33:25.820790311 
+0100
+++ contrib/hdtbl/examples/fonts_n.in   2011-01-14 13:33:35.440720348 +0100
@@ -50,7 +50,7 @@
 .  el \
 .    ds *args \\n[.fn]
 .
-.  pso bash -c \
+.  pso sh -c \
        "echo -n .ds *f\ ; \
         ls \\*[fontpath]/dev\*[.T] \
         | tr '[:cntrl:]' ' '"
--- contrib/hdtbl/examples/fonts_x.in.orig      2011-01-14 13:33:39.430690407 
+0100
+++ contrib/hdtbl/examples/fonts_x.in   2011-01-14 13:33:59.840540242 +0100
@@ -50,7 +50,7 @@
 .  el \
 .    ds *args \\n[.fn]
 .
-.  pso bash -c \
+.  pso sh -c \
        "echo -n .ds *f\ ; \
         ls \\*[fontpath]/dev\*[.T] \
         | tr '[:cntrl:]' ' '"
_______________________________________________
bug-groff mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-groff

Reply via email to