commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Installing property files from resource


From: Mark Wielaard
Subject: Installing property files from resource
Date: Sun, 07 Mar 2004 18:03:34 +0100

Hi,

Apparently we never installed any of the property files under the
resource directory. Since I need a simple way to add properties files
for gnu.regexp inclusion I made sure that they are all automatically
added to the glibj.zip file by the lib/Makefile.

2004-03-07  Mark Wielaard  <address@hidden>

        * lib/Makefile.am (propertydirs, propertyfiles): New variables.
        (resources): Create dirs and install property files.

Cheers,

Mark

Index: lib/Makefile.am
===================================================================
RCS file: /cvsroot/classpath/classpath/lib/Makefile.am,v
retrieving revision 1.54
diff -u -r1.54 Makefile.am
--- lib/Makefile.am     4 Feb 2004 08:21:59 -0000       1.54
+++ lib/Makefile.am     7 Mar 2004 16:58:05 -0000
@@ -17,6 +17,10 @@
 USER_JABBA = @USER_JABBA@
 USER_JAVAH = @USER_JAVAH@
 
+
+propertydirs :=  $(shell cd $(top_srcdir)/resource && $(FIND) gnu java -type d 
! -regex .*CVS)
+propertyfiles :=  $(shell cd $(top_srcdir)/resource && $(FIND) gnu java -name 
\*\.properties)
+
 #-----------------------------------------------------------------
 # defining a javac program written in java
 #-----------------------------------------------------------------
@@ -105,8 +109,13 @@
        if ! [ -e gnu ]; then mkdir gnu; fi
        if ! [ -e gnu/java ]; then mkdir gnu/java; fi
        if ! [ -e gnu/java/locale ]; then mkdir gnu/java/locale; fi
-       cp $(top_srcdir)/gnu/java/locale/*.properties gnu/java/locale/
+       @list='$(propertydirs)'; for p in $$list; do \
+         if ! [ -e $$p ]; then mkdir $$p; fi; \
+       done
+       @list='$(propertyfiles)'; for p in $$list; do \
+         cp $(top_srcdir)/resource/$$p $$p; \
+       done
 
 classes: genclasses
 

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]