Re: [Groff] [Groff-commit] groff ChangeLog Makefile.in aclocal.m4 configur...

2013-04-14 Thread Werner LEMBERG
Bernd, there are some problems with this patch. > +PERL=@PERL@ > PERLPATH=@PERLPATH@ > +PERLVERSION=@PERLVERSION@ We don't need PERL *and* PERLPATH. You should rename everything to use either the former or the latter. > --- aclocal.m428 Dec 2012 11:59:30 - 1.58 > +++ acloca

Re: [Groff] autoconf for GROFF_PERL

2013-04-14 Thread Bernd Warken
> Von: "Werner LEMBERG" > > Try something like this: > > AC_PATH_PROG([PERLPATH], >[perl], >[no]) > if test "$PERLPATH" = "no"; then > AC_MSG_ERROR([perl binary not found]) > fi I added an m4 macro `GROFF_PERL' at `m4/groff.m4'. It tests whether there i

Re: [Groff] error with autoreconf

2013-04-14 Thread Werner LEMBERG
>> Don't worry. If people use the default incantation >> >> cvs -z9 update -dP >> >> an empty `autom4te.cache' file gets deleted automatically. > > `autom4te.cache' isn't empty, but contains a `CVS' subdirectory with > the usual files. This counts as empty. Werner

Re: [Groff] error with autoreconf

2013-04-14 Thread Bernd Warken
> Von: "Werner LEMBERG" > > > Maybe the deletion of `autom4te.cache' should be done by someone > > with admin access. > > Don't worry. If people use the default incantation > > cvs -z9 update -dP > > an empty `autom4te.cache' file gets deleted automatically. `autom4te.cache' isn't empty, b

Re: [Groff] error with autoreconf

2013-04-14 Thread Werner LEMBERG
> With the actual groff CVS version and with > ftp://ftp.gnu.org/gnu/groff/groff-1.22.2.tar.gz, `autoreconf' > produces errors with `configure', but `autoconf' is fine for > `configure'. [untested] I think you have to say autoreconf -I m4 > Maybe the deletion of `autom4te.cache' should be don

Re: [Groff] autoconf for GROFF_PERL

2013-04-14 Thread Bernd Warken
> Von: "Werner LEMBERG" > Try something like this: > > AC_PATH_PROG([PERLPATH], >[perl], >[no]) > if test "$PERLPATH" = "no"; then > AC_MSG_ERROR([perl binary not found]) > fi Fine. Sdditionally `AX_PROG_PERL_VERSION' could be used for the version chec

Re: [Groff] autoconf for GROFF_PERL

2013-04-14 Thread Werner LEMBERG
>> AC_PATH_PROG([PERLPATH], [perl], [/usr/bin/perl]) >> if test -z "$PERLPATH"; then > > I think AC_PATH_PROG sets PERLPATH to /usr/bin/perl if it can't find it > in PATH, so the test will never be true? > > Perhaps the Autoconf archive is of some use? > http://www.gnu.org/software/auto

[Groff] error with autoreconf

2013-04-14 Thread Bernd Warken
With the actual groff CVS version and with ftp://ftp.gnu.org/gnu/groff/groff-1.22.2.tar.gz, `autoreconf' produces errors with `configure', but `autoconf' is fine for `configure'. I do not know where that comes from. I did not install anything about `autotools' in CVS. Maybe the deletion of `au

Re: [Groff] autoconf and autoreconf

2013-04-14 Thread Werner LEMBERG
>> Does that mean that in CVS all files generated by >> autconf/autoreconf such as `configure' should vanish? So everyone >> using CVS must first run autoconf/autoreconf? > > That's my understanding of what Werner and Keith have been saying, > yes. Indeed, but: > I'd hope you don't find too ma

Re: [Groff] autoconf for GROFF_PERL

2013-04-14 Thread Ralph Corderoy
Hi Bernd, > AC_PATH_PROG([PERLPATH], [perl], [/usr/bin/perl]) > if test -z "$PERLPATH"; then I think AC_PATH_PROG sets PERLPATH to /usr/bin/perl if it can't find it in PATH, so the test will never be true? Perhaps the Autoconf archive is of some use? http://www.gnu.org/software/autoc

[Groff] autoconf for GROFF_PERL

2013-04-14 Thread Bernd Warken
I tried to get autoconf into breaking by wrong Perl version or no Perl at all. ## add to /m4/groff.m4: # We need Perl 5.6.1 or newer. AC_DEFUN([GROFF_PERL], PERLVERSION=v5.6.1 AC_PATH_PROG([PERLPATH], [perl], [/usr/bin/perl]) if test -z "$PERLPATH"; then

Re: [Groff] Using variables from register within fractions or equations

2013-04-14 Thread Ralph Corderoy
Hi maouinin, Tadziu wrote: > With groff, instead of "--", you have to use "\[en]" to get an > en-dash. For left and right quotes use "\[lq]" and "\[rq]". Or the older style of \(en for the two-letter ones. There's also preconv(1), normally invoked with groff's -k option. That way you can feed

Re: [Groff] Using variables from register within fractions or equations

2013-04-14 Thread Tadziu Hoffmann
> When I give these tests, which often run into a number of > pages I like to put the "page_number of total_pages". > Something like "page 3 of 8". This at times helps me avoid > some classroom/testing confusion. In TeX there is a package > for this, "lastpage" if I remember correctly. How would I

Re: [Groff] error handling if Perl is not suitable

2013-04-14 Thread Bernd Warken
> Von: "Ralph Corderoy" > > Werner wrote: > > The current configure test for perl should be extended to abort if > > perl isn't found. > > It's been a long time since I autoconf'd, but AC_MSG_ERROR([perl not > found]) to bail out of configure may be useful. Thanx, that's very helpful. Bernd Wa

Re: [Groff] autoconf and autoreconf

2013-04-14 Thread Ralph Corderoy
Hi Bernd, > Does that mean that in CVS all files generated by autconf/autoreconf > such as `configure' should vanish? So everyone using CVS must first > run autoconf/autoreconf? That's my understanding of what Werner and Keith have been saying, yes. I'd hope you don't find too many in there in a

Re: [Groff] autoconf and autoreconf

2013-04-14 Thread Bernd Warken
Von: "Ralph Corderoy" > > Hi Keith, > > > however, [configure] is a *generated* file, and does *not* belong in a > > CVS repository, IMO. > > Quite. Nothing generated belongs in CVS; that's for human-edited > source only as otherwise its usefulness for investigation and > understanding changes

Re: [Groff] error handling if Perl is not suitable

2013-04-14 Thread Ralph Corderoy
Hi Bernd, Werner wrote: > The current configure test for perl should be extended to abort if > perl isn't found. It's been a long time since I autoconf'd, but AC_MSG_ERROR([perl not found]) to bail out of configure may be useful. Cheers, Ralph.

Re: [Groff] autoconf and autoreconf

2013-04-14 Thread Ralph Corderoy
Hi Keith, > however, [configure] is a *generated* file, and does *not* belong in a > CVS repository, IMO. Quite. Nothing generated belongs in CVS; that's for human-edited source only as otherwise its usefulness for investigation and understanding changes diminshes due to the noise. CVS users h

Re: [Groff] Using variables from register within fractions or equations

2013-04-14 Thread maouinin
Thank you. He probably did. It works. So now everything works, including the user. When I give these tests, which often run into a number of pages I like to put the "page_number of total_pages". Something like "page 3 of 8". This at times helps me avoid some classroom/testing confusion. In TeX t