source: project/format-modular/tags/1.7/format-modular.setup @ 8363

Last change on this file since 8363 was 4447, checked in by Kon Lovett, 13 years ago

Rplcd ' w/ ` so version code is evaled.

File size: 1.1 KB
Line 
1(include "setup-header")
2
3(required-chicken-version 2.6)
4
5(required-extension-version 'srfi-29 "1.5")
6
7(define srfi-29-bundles-path (make-repository-pathname "srfi-29-bundles"))
8(unless (directory? srfi-29-bundles-path)
9        (error 'format-modular.setup "missing SRFI-29 bundles directory; please re-install SRFI-29"))
10
11(define (copy-bundle spec)
12        (let ([bundle-name (make-pathname spec "format-modular")]
13              [bundle-dir (make-pathname srfi-29-bundles-path spec)])
14    (unless (directory? bundle-dir) (create-directory bundle-dir))
15                (copy-file
16                        (make-pathname "." bundle-name)
17                        (make-pathname srfi-29-bundles-path bundle-name))))
18
19;FIXME should have a bundle dir & walk it
20(copy-bundle "en")
21;See srfi-19.setup for a method of handling deeper directory bundles
22
23(compile-dynld format-modular)
24(compile-static format-modular)
25(install-extension 'format-modular
26  '("format-modular.so" "format-modular.o")
27  `((version ,(if (file-exists? "version") (with-input-from-file "version" read) "unknown"))
28    (static "format-modular.o")
29    (documentation "format-modular.html")))
Note: See TracBrowser for help on using the repository browser.