source: project/release/3/svnwiki-scheme-library/trunk/svnwiki-scheme-library.setup @ 18250

Last change on this file since 18250 was 18250, checked in by azul, 11 years ago

importing

File size: 1.1 KB
Line 
1; -*- Hen -*-
2
3(define has-exports? (string>=? (chicken-version) "2.310"))
4
5(define (dynld-name fn)         
6  (make-pathname #f fn ##sys#load-dynamic-extension))   
7
8(compile  -O2 -d0 -s
9         ,@(if has-exports? '(-check-imports -emit-exports svnwiki-scheme-library.exports) '())
10         svnwiki-scheme-library.scm)
11
12(unless (directory? "svnwiki-extensions-registry")
13  (create-directory "svnwiki-extensions-registry")
14  (close-output-port (open-output-file (make-pathname "svnwiki-extensions-registry" "scheme-library"))))
15
16(install-extension
17
18  ; Name of your extension:
19  'svnwiki-scheme-library
20
21  ; Files to install for your extension:
22  `(,(dynld-name "svnwiki-scheme-library")
23    ,(make-pathname "svnwiki-extensions-registry" "scheme-library")
24    ,@(if has-exports? '("svnwiki-scheme-library.exports") (list)) )
25
26  ; Assoc list with properties for your extension:
27  `((version ,(if (file-exists? "version") (with-input-from-file "version" read) "unknown"))
28    (documentation "svnwiki-scheme-library.html")
29    ,@(if has-exports? `((exports "svnwiki-scheme-library.exports")) (list)) ))
Note: See TracBrowser for help on using the repository browser.