From palme@uni-wuppertal.de  Thu May  7 14:46:11 1998
From: palme@uni-wuppertal.de (Hubert Palme)
Date: Thu, 7 May 1998 15:46:11 +0200 (MDT)
Subject: Once more: Compiling on SGI Irix 5.3
In-Reply-To: <x21zu7z9z8.fsf@blueberry.kubism.ku.dk>
References: <199805061335.PAA12940@wrin27.urz.uni-wuppertal.de>
 <x27m3zzem5.fsf@blueberry.kubism.ku.dk>
 <199805061441.QAA13559@wrin27.urz.uni-wuppertal.de>
 <x21zu7z9z8.fsf@blueberry.kubism.ku.dk>
Message-ID: <199805071346.PAA19029@wrin27.urz.uni-wuppertal.de>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Once more: Compiling on SGI Irix 5.3
Hubert Palme