[Surfraw-devel] user elvi directory?

James Rowe jnrowe at gmail.com
Mon Oct 5 23:38:26 UTC 2009

* Sumant Oemrawsingh (soemraws at xs4all.nl) wrote:
> I would like to write and contribute some elvi, but would like to test them
> first. While doing this, I realised there is no way for a user to make and
> keep his own directory of elvi. Is this done on purpose?
> Such an option would make writing/debugging my elvi easier. Surfraw is
> installed globally and I think it's less nice to also keep a surfraw install
> in my home dir or to copy as root my test elvi every time.

  As you're sourcing the surfraw script at the top of your elvi you can
just call them from where you're writing them to test:

  0 jay at kate ~ $ cd ~
  0 jay at kate ~ $ cp /usr/share/surfraw/urban my_test
  0 jay at kate ~ $ ./my_test --help | head -n1
  Usage: my_test [options] [search words]...

> I could dive into the code and provide such an option, if this is not
> something people are opposed to.

  The idea as a general solution sounds good though, being able to dump
all those local elvis that aren't suitable for upstream in ~/.elvi would
probably be nice for me too.  Currently, my package manager takes care
of my local elvis in /usr, but a local directory would probably be
easier on systems where this isn't a one-liner.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/surfraw-devel/attachments/20091006/234dfe41/attachment.pgp>

More information about the Surfraw-devel mailing list