[GRASS-dev] Makefiles: tar failure on Solaris

Hamish hamish_nospam at yahoo.com
Sat Nov 18 00:30:38 EST 2006


Markus Neteler wrote:
> > > looking again at
> > > https://intevation.de/rt/webrt?serial_num=5257&display=History
> > > it seems that we have to remove all "tar" usage from Makefiles
> > > (as already discovered months ago).
> > > 
> > > Attached my patch suggestion to lib/symbol/.
> ... 
> > 3. Use "test -f", e.g.
> > 
> > 	for file in symbol/demo/* ; do \
> > 	[ -f "$$file" ] && $(INSTALL_DATA) $$file $(ETC)/symbol/demo ; \
> > 	done
> 
> I have implemented this solution now in
> lib/symbol/Makefile.

simplifying to making it easier to add new symbol groups (hopefully),

would this work:


for group in basic demo extra ; do \
    for file in symbol/$$group/* ; do \
	[ -f "$$file" ] && $(INSTALL_DATA) $$file $(ETC)/symbol/$$group ; \
    done \
done


?
Hamish




More information about the grass-dev mailing list