Greetings earthlings,

I'm contemplating adding XDG basedirs support to GNU Alive and GNU
Serveez, so the obvious approach is classic modularity: write the
functionality once and somehow make it available.  It's no big deal to
start w/ ‘define-module’, but then the questions begin:

 - What is a good module name?
 - What package does it belong to?
 - Does the use case justify keeping all this code in memory?
 - Is this really "write once"?
   - What about Lisp programs?
   - What about programs (in any language) that can ‘read’ sexps?

The functionality is basically using ‘getenv’ and ‘parse-path’ to
produce easily-serialized data (strings and lists of strings), amenable
to piping and other textual manipulations.  So, why not a standalone
program?

As to the packaging, for a bit i mulled over a "XDG Utils" package with
only one program to start, but that would be succumbing to my bad habit
of overengineering things, so i'm glad to say that bit was short-lived.

Anyway, here it is:

Attachment: xdgdirs
Description: application/scheme

Installation is simple:

 # install xdgdirs /usr/local/bin

The program supports ‘--help’ and ‘--version’, which must suffice in
lieu of proper documentation, for now.  Maybe some future release...

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

Attachment: pgp0C49BKoE6d.pgp
Description: PGP signature

Reply via email to