I have finally got back to the packages proposal. I'm trying the cvs
version. It looks good. I'll keep playing with it. Here are some notes
(define-package <name> <version> <extensions> <body> ...) (syntax)
What are <extensions> used for? The documentation doesn't say.
What if I want to initialize <version> from an expression? Do I use a
function version of define-package? So maybe <version> should be
Compute an installation file's contents from an expression. So this:
(install-string <string> <file> <location> [<target-dir>] [<perms>])
would write the <string> to the <file>.
1. Unrecognized layout ("hfs" instead of "fhs" below), gives exception
instead of error message.
2. relative prefix doesn't work.
See this typescript for details:
Script started on Fri Feb 6 00:11:06 2004
bash-2.05b$ cat pkg-def.scm
;; ISSUE: what are extensions?
(install-file "load.scm" 'base)
(install-file "README" 'doc)
; (install-file "COPYING" 'doc)
(install-file "args-fold.scm" 'scheme))
bash-2.05b$ ./install-pkg --layout=hfs --prefix=tmp/fhs
bash-2.05b$ ./install-pkg --layout=scsh --prefix=tmp/scsh
Error: no root to replace in relative file name
bash-2.05b$ ./install-pkg --layout=scsh --prefix=`pwd`/tmp/scsh
bash-2.05b$ tree tmp
|-- srfi-37 -> srfi-37-0.4
| `-- README
5 directories, 3 files
Script done on Fri Feb 6 00:12:54 2004
Description: Digital signature