[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 05 Sep 2013 12:42:55 +0200
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
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:
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...
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
Description: PGP signature
- xdgdirs 1.0,
Thien-Thi Nguyen <=