[GRASS-dev] Makefiles: tar failure on Solaris

Markus Neteler neteler at itc.it
Thu Nov 16 02:07:06 EST 2006


Hi,

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/. However, stuff
like this obviously remains:

/usr/bin/install: `symbol/extra/CVS' is a directory

How to get rid of that?

Markus
-------------- next part --------------
? OBJ.x86_64-unknown-linux-gnu
Index: Makefile
===================================================================
RCS file: /grassrepository/grass6/lib/symbol/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	4 Apr 2006 20:26:27 -0000	1.6
+++ Makefile	16 Nov 2006 07:04:37 -0000
@@ -9,5 +9,10 @@
 default: lib symb
 
 symb:
-	$(MKDIR) $(ETC)/symbol
-	find ./symbol -type f | grep -v CVS | xargs tar chBf - |(cd $(ETC); tar xBf -)
+	if [ ! -d $(ETC)/symbol ]; then $(MKDIR) $(ETC)/symbol ; fi
+	if [ ! -d $(ETC)/symbol/demo ]; then $(MKDIR) $(ETC)/symbol/demo ; fi
+	if [ ! -d $(ETC)/symbol/basic ]; then $(MKDIR) $(ETC)/symbol/basic ; fi
+	if [ ! -d $(ETC)/symbol/extra ]; then $(MKDIR) $(ETC)/symbol/extra ; fi
+	for file in symbol/demo/* ; do $(INSTALL_DATA) $$file $(ETC)/symbol/demo ; done
+	for file in symbol/basic/* ; do $(INSTALL_DATA) $$file $(ETC)/symbol/basic ; done
+	for file in symbol/extra/* ; do $(INSTALL_DATA) $$file $(ETC)/symbol/extra ; done


More information about the grass-dev mailing list