/[ascend]/trunk/models/SConscript
ViewVC logotype

Contents of /trunk/models/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1162 - (show annotations) (download)
Wed Jan 17 04:34:59 2007 UTC (15 years, 10 months ago) by johnpye
File size: 1056 byte(s)
Fixed sensitivity module. It now runs as mostly external code, with just a few relics required by LSODE still in packages/sensitivity.c.
1 Import('env')
2
3 # Build directories that contain external libraries
4 env.SConscript(['johnpye/SConscript'],['env'])
5 env.SConscript(['test/SConscript'],['env'])
6 env.SConscript(['sensitivity/SConscript'],['env'])
7
8 # Hunt for all models in the directory structure
9 import os, os.path
10
11 modelfiles = []
12
13 excludedirs = ['.svn','CVS']
14 excludefiles = ['Makefile.in','SConscript','update-Makefile.pl']
15
16 modeldir = env.Dir(".").abspath
17
18 cwd = os.getcwd()
19 os.chdir(modeldir)
20 for root,dirs,files in os.walk("."):
21 for d in dirs:
22 if d in excludedirs:
23 dirs.remove(d)
24 for f in files:
25 if f in excludefiles:
26 continue
27 modelfiles.append( os.path.normpath(os.path.join(root,f)) )
28 os.chdir(cwd)
29
30 modelsroot = env['INSTALL_ROOT']+env['INSTALL_MODELS']
31
32 installeddirs = []
33
34 for f in modelfiles:
35 head,tail = os.path.split(f)
36 targetdir = os.path.join(modelsroot,head)
37 if not targetdir in installeddirs:
38 installeddirs.append(targetdir)
39 env.InstallShared(targetdir,f)
40
41 #print "MODEL INSTALLED DIRS =",installeddirs
42 Return('installeddirs')
43
44 # vim: set syntax=python:
45

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22