Once more: Compiling on SGI Irix 5.3

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
06 May 1998 17:37:31 +0200


palme@uni-wuppertal.de (Hubert Palme) writes:

>  > > "make docs" for LaTeX doesn't collect any information about the
>  > > functions. So in Man.dvi the appendix C is empty. A Bug??
> 
> (cd ../doc/manual; gmake Man.dvi)
> gmake[2]: Entering directory `/daten/softy/software/Statistik/R/R-0.61.3/doc/manual'
> Collecting components of  pkg-base.tex ..
> gmake[2]: execvp: /bin/sh: Arg list too long

Uh, oh... 

$ echo ../../library/base/latex/*.tex | wc
      1     325   11850

A 12K command line! I can believe that that might be a problem on some
systems.

The way to split it must be something along the lines of replacing the
last line of

pkg-base.tex: $(RLIB)/base/latex/*.tex
        @echo 'Collecting components of  $@ ..'
        @sed 's/__PKG__/base/g' Pkg-start.tex | cat - $^ Pkg-end.tex > $@

with
	@cat $(RLIB)/base/latex/[A-e]*.tex > pkg-base.1
	@cat $(RLIB)/base/latex/[f-p]*.tex > pkg-base.2
	@cat $(RLIB)/base/latex/[q-z]*.tex > pkg-base.3
        @sed 's/__PKG__/base/g' Pkg-start.tex |\
		 cat - pkg-base.[123] Pkg-end.tex > $@
	@rm pkg-base.[123]

You may need to adjust the boundaries there of course.

Another option could be


	@(sed 's/__PKG__/base/g' Pkg-start.tex; \
		find $(RLIB)/base/latex/ -name '*.tex' -print |\
		 sort | xargs cat ;\
		 cat Pkg-end.tex) > $@

But does all relevant systems have the xargs command?

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._