source: project/release/4/9ML-toolkit/trunk/9ML-toolkit.setup @ 23838

Last change on this file since 23838 was 23838, checked in by Ivan Raikov, 10 years ago

9ML-toolit: commit octave/mlton platform

File size: 3.3 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.3)
8(required-extension-version 'signal-diagram 1.5)
9
10(define version 1.0)
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" )
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       ("9ML-report"
36        ("NineMLcore.scm" "NineMLsignal.scm" "NineMLdiagram.scm" "NineMLinterval.scm"  "NineMLgraph.scm"
37         "report.scm" )
38        (compile -O -d2 -S report.scm -o 9ML-report ))
39
40       ("9ML-ivp"
41        ("NineMLcore.scm" "NineMLsignal.scm" "NineMLdiagram.scm" "NineMLinterval.scm" "NineMLgraph.scm" "NineMLivp.scm" "ivp-platforms.scm"
42         "ivp.scm" )
43        (compile -O -d2 -S ivp.scm -o 9ML-ivp ))
44
45       ("9ML-shell"
46        ("NineMLcore.scm" "NineMLsignal.scm" "NineMLdiagram.scm" "NineMLinterval.scm" "NineMLgraph.scm" 
47         "shell.scm" )
48        (compile -O -d2 -S shell.scm -o 9ML-shell ))
49
50       )
51
52  (list (dynld-name "9ML-repr") (dynld-name "9ML-repr.import")
53        (dynld-name "9ML-parse") (dynld-name "9ML-parse.import")
54        "9ML-report" "9ML-ivp" "9ML-shell")
55
56  )
57
58
59(install-extension
60
61  ; Name of your extension:
62  '9ML-repr
63
64  ; Files to install for your extension:
65  `(,(dynld-name "9ML-repr") ,(dynld-name "9ML-repr.import") )
66
67  ; Assoc list with properties for your extension:
68  `((version ,version)
69    ))
70
71
72(install-extension
73
74  ; Name of your extension:
75  '9ML-parse
76
77  ; Files to install for your extension:
78  `(,(dynld-name "9ML-parse") ,(dynld-name "9ML-parse.import") )
79
80  ; Assoc list with properties for your extension:
81  `((version ,version)
82    ))
83
84
85(install-program
86 '9ML-report
87 
88 `("9ML-report" )
89
90  ; Assoc list with properties for the program:
91  `((version ,version)))
92
93
94(install-program
95 '9ML-ivp
96 
97 `("9ML-ivp" )
98
99  ; Assoc list with properties for the program:
100  `((version ,version)))
101
102
103(install-program
104 '9ML-shell
105 
106 `("9ML-shell" )
107
108  ; Assoc list with properties for the program:
109  `((version ,version)))
110
111(include "setup-helper")
112(define SHARED-DIR (installation-chicken-home))
113(define 9ML-DIR (make-pathname SHARED-DIR "9ML"))
114
115;; File Copy Operations
116
117(define (*file-copy fn dn)
118  (let ([fn (->string fn)])
119    (copy-file fn (make-pathname dn fn)) ) )
120
121(define (copy-file-to-9ML-dir fn)
122  (*file-copy (->string fn) 9ML-DIR) )
123
124(if (not (file-exists? 9ML-DIR))
125    (create-directory 9ML-DIR))
126
127
128(copy-file-to-9ML-dir "examples/MorrisLecar81.9ML")
129(copy-file-to-9ML-dir "examples/Izhikevich03.9ML")
130(copy-file-to-9ML-dir "examples/Destexhe94.9ML")
131(copy-file-to-9ML-dir "examples/LeakyIAF.9ML")
132(copy-file-to-9ML-dir "examples/ExcInhNetwork.9ML")
Note: See TracBrowser for help on using the repository browser.