source: project/release/4/9ML-toolkit/tags/1.8/9ML-toolkit.setup @ 25519

Last change on this file since 25519 was 25519, checked in by Ivan Raikov, 9 years ago

9ML-toolkit release 1.8

File size: 6.7 KB
Line 
1;;;; -*- Hen -*-
2
3(define (dynld-name fn)         
4  (make-pathname #f fn ##sys#load-dynamic-extension))   
5
6(required-extension-version 'getopt-long 1.9)
7(required-extension-version 'miniML 1.7)
8(required-extension-version 'signal-diagram 2.1)
9
10(define version 1.8)
11
12(make (
13       ("NineML.grm.scm" ("NineML.grm")
14        (run (csi -s NineML.grm)))
15
16       ("NineML.l.scm" ("NineML.l")
17        (run (csi -n -R silex
18                  -e "'(lex \"NineML.l\" \"NineML.l.scm\" (quote counters) (quote line))'")))
19
20       ("expr.grm.scm" ("expr.grm")
21        (run (csi -s expr.grm)))
22
23       ((dynld-name "9ML-parse") ("parse.scm" "NineML.l.scm" "NineML.grm.scm" "expr.grm.scm" "expr-parser.scm")
24        (compile -O -d2 -S -s parse.scm -o ,(dynld-name "9ML-parse") -j 9ML-parse))
25
26       ((dynld-name "9ML-parse.import") ("9ML-parse.import.scm")
27        (compile  -s 9ML-parse.import.scm))
28
29       ((dynld-name "9ML-repr") ("repr.scm" "SXML.scm" "SXML-to-XML.scm" (dynld-name "9ML-parse") )
30        (compile -O -d2 -S -s repr.scm -o ,(dynld-name "9ML-repr") -j 9ML-repr))
31
32       ((dynld-name "9ML-repr.import") ("9ML-repr.import.scm")
33        (compile  -s 9ML-repr.import.scm))
34
35       ((dynld-name "9ML-ivp-octave") ("ivp-octave.scm" )
36        (compile -O -d2 -S -s ivp-octave.scm -o ,(dynld-name "9ML-ivp-octave") -j 9ML-ivp-octave))
37
38       ((dynld-name "9ML-ivp-octave.import") ( "9ML-ivp-octave.import.scm" )
39        (compile  -s 9ML-ivp-octave.import.scm))
40
41       ((dynld-name "9ML-ivp-chicken") ("ivp-chicken.scm" )
42        (compile -O -d2 -S -s ivp-chicken.scm -o ,(dynld-name "9ML-ivp-chicken") -j 9ML-ivp-chicken))
43
44       ((dynld-name "9ML-ivp-chicken.import") ( "9ML-ivp-chicken.import.scm" )
45        (compile  -s 9ML-ivp-chicken.import.scm))
46
47       ((dynld-name "9ML-ivp-mlton") ( "ivp-mlton.scm" )
48        (compile -O -d2 -S -s ivp-mlton.scm -o ,(dynld-name "9ML-ivp-mlton") -j 9ML-ivp-mlton))
49
50       ((dynld-name "9ML-ivp-mlton.import") ( "9ML-ivp-mlton.import.scm" )
51        (compile  -s 9ML-ivp-mlton.import.scm))
52
53       ((dynld-name "9ML-ivp-octave-mlton") ( "ivp-octave-mlton.scm" )
54        (compile -O -d2 -S -s ivp-octave-mlton.scm -o ,(dynld-name "9ML-ivp-octave-mlton") -j 9ML-ivp-octave-mlton))
55
56       ((dynld-name "9ML-ivp-octave-mlton.import") ("9ML-ivp-octave-mlton.import.scm")
57        (compile  -s 9ML-ivp-octave-mlton.import.scm))
58
59       ((dynld-name "9ML-toolkit")
60        ("9ML-toolkit.scm" "NineMLcore.scm" "NineMLsignal.scm" "NineMLdiagram.scm" "NineMLinterval.scm" "NineMLgraph.scm" "NineMLivp.scm"  )
61        (compile -O -d2 -S -s 9ML-toolkit.scm -o ,(dynld-name "9ML-toolkit") -j 9ML-toolkit))
62
63       ((dynld-name "9ML-toolkit.import") ("9ML-toolkit.import.scm")
64        (compile  -s 9ML-toolkit.import.scm))
65
66       ("9ML-report"
67        ("NineMLcore.scm" "NineMLsignal.scm" "NineMLdiagram.scm" "NineMLinterval.scm"  "NineMLgraph.scm"
68         "report.scm" )
69        (compile -O -d2 -S report.scm -o 9ML-report ))
70
71       ("9ML-ivp"
72        ("NineMLcore.scm" "NineMLsignal.scm" "NineMLdiagram.scm" "NineMLinterval.scm" "NineMLgraph.scm" "NineMLivp.scm" 
73         "ivp.scm" )
74        (compile -O -d2 -S ivp.scm -o 9ML-ivp ))
75
76       ("9ML-shell"
77        ("NineMLcore.scm" "NineMLsignal.scm" "NineMLdiagram.scm" "NineMLinterval.scm" "NineMLgraph.scm" 
78         "shell.scm" )
79        (compile -O -d2 -S shell.scm -o 9ML-shell ))
80
81       ("9ML-ulp"
82        ("NineMLcore.scm" "NineMLsignal.scm" "NineMLdiagram.scm" "NineMLinterval.scm" "NineMLgraph.scm" 
83         "ulp.scm" )
84        (compile -O -d2 -S ulp.scm -o 9ML-ulp ))
85
86       )
87
88  (list (dynld-name "9ML-toolkit") (dynld-name "9ML-toolkit.import")
89        (dynld-name "9ML-repr") (dynld-name "9ML-repr.import")
90        (dynld-name "9ML-parse") (dynld-name "9ML-parse.import")
91        (dynld-name "9ML-ivp-octave") (dynld-name "9ML-ivp-octave.import")
92        (dynld-name "9ML-ivp-chicken") (dynld-name "9ML-ivp-chicken.import")
93        (dynld-name "9ML-ivp-mlton") (dynld-name "9ML-ivp-mlton.import")
94        (dynld-name "9ML-ivp-octave-mlton") (dynld-name "9ML-ivp-octave-mlton.import")
95        "9ML-report" "9ML-ivp" "9ML-shell" "9ML-ulp" )
96
97  )
98
99
100(install-extension
101
102  ; Name of your extension:
103  '9ML-ivp-octave
104
105  ; Files to install for your extension:
106  `(,(dynld-name "9ML-ivp-octave") ,(dynld-name "9ML-ivp-octave.import") )
107
108  ; Assoc list with properties for your extension:
109  `((version ,version)
110    ))
111
112(install-extension
113
114  ; Name of your extension:
115  '9ML-ivp-chicken
116
117  ; Files to install for your extension:
118  `(,(dynld-name "9ML-ivp-chicken") ,(dynld-name "9ML-ivp-chicken.import") )
119
120  ; Assoc list with properties for your extension:
121  `((version ,version)
122    ))
123
124(install-extension
125
126  ; Name of your extension:
127  '9ML-ivp-mlton
128
129  ; Files to install for your extension:
130  `(,(dynld-name "9ML-ivp-mlton") ,(dynld-name "9ML-ivp-mlton.import") )
131
132  ; Assoc list with properties for your extension:
133  `((version ,version)
134    ))
135
136(install-extension
137
138  ; Name of your extension:
139  '9ML-ivp-octave-mlton
140
141  ; Files to install for your extension:
142  `(,(dynld-name "9ML-ivp-octave-mlton") ,(dynld-name "9ML-ivp-octave-mlton.import") )
143
144  ; Assoc list with properties for your extension:
145  `((version ,version)
146    ))
147
148(install-extension
149
150  ; Name of your extension:
151  '9ML-toolkit
152
153  ; Files to install for your extension:
154  `(,(dynld-name "9ML-toolkit") ,(dynld-name "9ML-toolkit.import") )
155
156  ; Assoc list with properties for your extension:
157  `((version ,version)
158    ))
159
160(install-extension
161
162  ; Name of your extension:
163  '9ML-repr
164
165  ; Files to install for your extension:
166  `(,(dynld-name "9ML-repr") ,(dynld-name "9ML-repr.import") )
167
168  ; Assoc list with properties for your extension:
169  `((version ,version)
170    ))
171
172
173(install-extension
174
175  ; Name of your extension:
176  '9ML-parse
177
178  ; Files to install for your extension:
179  `(,(dynld-name "9ML-parse") ,(dynld-name "9ML-parse.import") )
180
181  ; Assoc list with properties for your extension:
182  `((version ,version)
183    ))
184
185
186(install-program
187 '9ML-report
188 
189 `("9ML-report" )
190
191  ; Assoc list with properties for the program:
192  `((version ,version)))
193
194
195(install-program
196 '9ML-ivp
197 
198 `("9ML-ivp" )
199
200  ; Assoc list with properties for the program:
201  `((version ,version)))
202
203
204(install-program
205 '9ML-shell
206 
207 `("9ML-shell" )
208
209  ; Assoc list with properties for the program:
210  `((version ,version)))
211
212(install-program
213 '9ML-ulp
214 
215 `("9ML-ulp" )
216
217  ; Assoc list with properties for the program:
218  `((version ,version)))
219
220
221(include "setup-helper")
222(define SHARED-DIR (installation-chicken-home))
223(define 9ML-DIR (make-pathname SHARED-DIR "9ML"))
224
225;; File Copy Operations
226
227(define (*file-copy fn dn)
228  (let ([fn (->string fn)])
229    (copy-file fn (make-pathname dn fn)) ) )
230
231(define (copy-file-to-9ML-dir fn)
232  (*file-copy (->string fn) 9ML-DIR) )
233
234(if (not (file-exists? 9ML-DIR))
235    (create-directory 9ML-DIR))
236
237
238(copy-file-to-9ML-dir "examples/MorrisLecar81.9ML")
239(copy-file-to-9ML-dir "examples/Izhikevich03.9ML")
240(copy-file-to-9ML-dir "examples/Destexhe94.9ML")
241(copy-file-to-9ML-dir "examples/LeakyIAF.9ML")
242(copy-file-to-9ML-dir "examples/ExcInhNetwork.9ML")
Note: See TracBrowser for help on using the repository browser.