xdgdirs 1.0
Thien-Thi Nguyen <[email protected]> Thu, 05 Sep 2013 12:42:55 +0200
| Newsgroups | gmane.lisp.guile.user,gmane.lisp.guile.sources |
|---|---|
| Message-ID | <[email protected]> |
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:
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
xdgdirs
(application/x-scheme, 4.3 KB) - not displayed
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlIoYDsACgkQZwMiJEyAdQJu8ACgkB4WI/vu5Y6aMQd8QnErUkJ8 e+wAoMXSJOJwqTKmfmEHcWJ8oLY0u/E0 =ZgSt -----END PGP SIGNATURE-----