Once more: Compiling on SGI Irix 5.3

Hubert Palme palme@uni-wuppertal.de
Thu, 7 May 1998 15:46:11 +0200 (MDT)


Peter Dalgaard BSA: 
 > 
 > 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]

This works...

 > 
 > You may need to adjust the boundaries there of course.

... without adjusting (the [x-y] boundaries I guess).

 > 
 > 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?

Irix does, but the first solution is better understandable :-)

Thanks!

-- 
======================================================================
Hubert Palme         Bergische Universitaet-Gesamthochschule Wuppertal
                                      Computing  Center
                                      D-42097 Wuppertal
Email: palme@uni-wuppertal.de             (Germany)
http://www.hrz.uni-wuppertal.de/hrz/personen/h_palme.html
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._