l4-hurd
[Top][All Lists]
Advanced

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

Re: Documentation generation patch


From: Marcus Brinkmann
Subject: Re: Documentation generation patch
Date: Sun, 18 Apr 2004 16:43:59 +0200
User-agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI)

At Sat, 17 Apr 2004 19:55:02 +0200,
Tomasz Gajewski wrote:
> This is the patch for two thing that were annoying me for quite long
> time when building hurd-l4.

Thanks for working on it!
 
> First is that dvips rule printed document directly to a printer (no -o
> option).

Oops.
 
> Second is that documentation did not generate properly when building
> not from source directory.
> 
> I have tested this on linux. I know that dirname is not portable but
> couldn't get rid of it - there is a macro AS_DIRNAME in the autoconf
> docs but I couldn't use it successfully.

Prtability is not an issue, but still.  Can't you use $(builddir)
here or what it is called?

Is TEXINPUTS a search path?  Can't this be passed on the command line,
I'd prefer that over mangling the environment.  At the very least
you'd have to preserve the already existing value of it (ie, extending
it rather than overwriting).

Thanks,
Marcus

> Index: doc/Makefile.am
> ===================================================================
> RCS file: /cvsroot/hurd/hurd-l4/doc/Makefile.am,v
> retrieving revision 1.4
> diff -u -p -r1.4 Makefile.am
> --- doc/Makefile.am   22 Mar 2004 00:26:50 -0000      1.4
> +++ doc/Makefile.am   17 Apr 2004 17:15:40 -0000
> @@ -43,15 +43,15 @@ hurd-on-l4.dvi: ${eps_files} ${tex_files
>  SUFFIXES = .ps .dvi .tex .eps .fig .pdf
>  
>  .tex.dvi:
> -     $(LATEX) $< -o $@
> +     TEXINPUTS=:`dirname "$<"`: $(LATEX) $< -o $@ ; \
>       while egrep "^LaTeX Warning:.*Rerun to" \
> -         `echo $< | sed -e 's/.tex$$/.log/'`; do \
> +         `echo $< | sed -e 's/.*\///' -e 's/.tex$$/.log/'`; do \
>         rm -f $(subst $<,.tex,.log); \
> -       $(LATEX) $< -o $@; \
> +       TEXINPUTS=:`dirname "$<"`: $(LATEX) $< -o $@; \
>       done
>  
>  .dvi.ps:
> -     $(DVIPS) $<
> +     $(DVIPS) -o $@ $<
>  
>  .ps.pdf:
>       $(PS2PDF) $<
> 
> 
> 
> _______________________________________________
> L4-hurd mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/l4-hurd
> 




reply via email to

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