scsh-hackers
[Top] [All Lists]

[Scsh-hackers] scsh-packages first contact

To: scsh-hackers <scsh-hackers@lists.sourceforge.net>
Subject: [Scsh-hackers] scsh-packages first contact
From: Anthony Carrico <acarrico@memebeam.org>
Date: Thu Feb 5 21:27:04 2004
List-id: Discussion among the implementors <scsh-hackers.lists.sourceforge.net>
Sender: scsh-hackers-admin@lists.sourceforge.net
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
so far:

QUESTIONS:

(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
quasiquote too.

FEATURE REQUEST:

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>.

REPORTS:

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
(define-package "srfi-37"
  (0 4)
  ;; ISSUE: what are extensions?
  ()
  ;; body
  (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

Error: exception
       (car '())
bash-2.05b$ ./install-pkg --layout=scsh --prefix=tmp/scsh

Error: no root to replace in relative file name
       "tmp/scsh"
bash-2.05b$ ./install-pkg --layout=scsh --prefix=`pwd`/tmp/scsh
bash-2.05b$ tree tmp
tmp
`-- scsh
    |-- srfi-37 -> srfi-37-0.4
    `-- srfi-37-0.4
        |-- doc
        |   `-- README
        |-- load.scm
        `-- scheme
            `-- args-fold.scm

5 directories, 3 files
bash-2.05b$ exit
Script done on Fri Feb  6 00:12:54 2004

-- 
Anthony Carrico

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>