slgdbm package [was: Re: jedstate]

Rafael Laboissiere rafael at debian.org
Fri Sep 23 13:14:09 UTC 2005


* Paul Boekholt <p.boekholt at hetnet.nl> [2005-09-23 13:39]:

> I don't know, I guess it should work like John's curl module, which
> installs curl.hlp in /usr/local/share/slsh/local-packages/help/curl.hlp

I think that this slsh/local-packages directory is intended for user
add-ons.  For a debian package providing a module, we should use
/usr/share/slsh, as I am doing currently.  

There is a parallel to this in Debian: you will that there is no official
package which installs binaries in /usr/local/bin.

> The curl module also provides a file
> /usr/local/share/slsh/local-packages/curl.sl:
> 
> import ("curl");
> 
> $1 = path_concat (path_concat (path_dirname (__FILE__), "help"),
> 		  "curl.hlp");
> if (NULL != stat_file ($1))
>   add_doc_file ($1);
> 
> provide ("curl");
> 
> However, add_doc_file() only works in slsh, not in JED.

This makes me think that you should add a gdbm.sl file similar to the
above to your slgdbm.  I am experimenting with this, and now the
following works:

    $ slsh
    slsh> () = evalfile ("gdbm.sl");
    slsh> help gdbm_open
    gdbm_open

     SYNOPSIS
        open a gdbm database
    [...]
    

-- 
Rafael



More information about the Pkg-jed-devel mailing list