Update of /cvsroot/monetdb/buildtools/autogen/autogen
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27682/autogen/autogen
Modified Files:
msc.py
Log Message:
Ported from am.py: make sure .m files are also installed in the new setup.
Index: msc.py
===================================================================
RCS file: /cvsroot/monetdb/buildtools/autogen/autogen/msc.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- msc.py 23 Nov 2007 13:47:13 -0000 1.42
+++ msc.py 3 Dec 2007 14:31:34 -0000 1.43
@@ -443,6 +443,16 @@
## msc_deps(fd, scripts['DEPS'], "\.o", msc)
+# return the unique elements of the argument list
+def uniq(l):
+ try:
+ return list(set(l))
+ except NameError: # presumably set() is unknown
+ u = {}
+ for x in l:
+ u[x] = 1
+ return u.keys()
+
# list of headers to install
def msc_headers(fd, var, headers, msc):
@@ -452,7 +462,13 @@
sd = msc_translate_dir(sd, msc)
hdrs_ext = headers['HEADERS']
- for header in headers['TARGETS']:
+ deps = []
+ for d,srcs in headers['DEPS'].items():
+ for s in srcs:
+ if s in headers['SOURCES']:
+ deps.append(d)
+ break
+ for header in uniq(headers['TARGETS'] + deps):
h, ext = split_filename(header)
if ext in hdrs_ext:
if os.path.isfile(os.path.join(msc['cwd'], header+'.in')):
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins