Werner Almesberger
65f93a2684
dsv/dsv: delete .zip file if extraction fails
...
This allows updating a the .zip in cases where the archive's name didn't
change but its content did. "dsv setup" has to be manually re-run in
this case.
2013-11-28 22:34:33 -03:00
Werner Almesberger
3256b03294
dsv/dsv: sent User-Agent to "dsv/1.0" (instead of Wget/...)
...
Digi-Key now blocks wget from accessing their document cache.
Seems to be a rather silly move ...
2013-09-10 11:55:49 -03:00
Werner Almesberger
bbb6513b42
dsv/dsv: allow -p and -u to be used together
...
In this case, first the path and then the URL is printed.
Before, you'd either get and error or one of the options would be ignored.
2012-12-22 22:31:27 -03:00
Werner Almesberger
676c6a2715
dsv/dsv: record source URL in dsv-* file; new option -u to show it
...
This adds a second line to the dsv-* files, containing the source URL.
dsv -u <word> shows the URL.
Compatibility with older versions of dsv:
- "dsv -u" will fail with an error if running on an old data sheet
database, while the rest of dsv works as before
- to update the database, run the usual "dsv setup ..."
(most dsv-using projects have a "make dsv" target for this)
- older version of dsv will not be able to display data sheets or paths
if run with an updated database
2012-12-21 17:43:37 -03:00
Werner Almesberger
24160ddd57
dsv/dsv (setup): remove trailing whitespace from lines from bookshelf file
2012-12-21 16:05:31 -03:00
Werner Almesberger
4a0b547b9a
dsv/dsv: change viewer default from xpdf to xdg-open; introduce DSV_VIEWER; add README
2012-07-20 09:48:36 -03:00
Werner Almesberger
e5e67dd597
dsv/dsv: add support for PDF embedded in ZIP
...
Syntax:
D: url-to-zip-file path-of-pdf-in-zip
Example:
D: http://www.usb.org/developers/docs/usb_20_071012.zip usb_20_071012/usb_20.pdf
2012-07-19 11:29:49 -03:00
Werner Almesberger
45031eb585
dsv/dsv: added option -p to show the path to the file
2011-08-16 13:55:19 -03:00
Werner Almesberger
ff29948b69
dsv: print usage on "dsv setup" without file name
...
- dsv/dsv (usage): fixed typo
- dsv/dsv (main): it is now an error if "dsv setup" is invoked without
file name (suggested by Wolfgang Spraul)
2010-12-13 11:52:24 -03:00
Werner Almesberger
fb1c75cc4d
dsv: added DSV_PDFVIEWER as a means to set a PDF viewer different from xpdf
...
dsv/dsv (search): if the environment variable _DSV_PDFVIEWER is set, use
the program mentioned there instead of xpdf (suggested by Wolfgang
Spraul)
2010-12-13 11:46:28 -03:00
Werner Almesberger
4f655930a4
dsv (list): use "ls -b" to avoid confusing "column" with 8 bit characters
2010-11-30 19:37:17 -03:00
Werner Almesberger
f207be6671
dsv (setup): make sure file ends with a newline, so that we can "read" it
2010-11-30 19:27:59 -03:00
Werner Almesberger
be269982f3
dsv: in names, convert / to %2F and % to %25
...
- dsv (flush): convert / and % in cache file name
- dsv (flush): convert / and % in name and alias file name
- dsv (list): convert %2F and %25 back to / and %
- dsv (search): convert / and %
2010-11-30 19:16:22 -03:00
Werner Almesberger
e928d82b79
dsv (search): quote file name, so that we can also look up names with spaces
2010-11-30 18:56:33 -03:00
Werner Almesberger
92cb58023d
dsv: make "dsv setup" accept spaces in names and aliases
...
- dsv (set_value): store name and alias with double quotes, to protect
spaces
- dsv (flush): access name and alias via "eval"
2010-11-30 18:52:57 -03:00
Werner Almesberger
3b3c4bf056
dsv: remove unnecessary double quotes in assignments
...
- dsv: change foo="$bar" to foo=$bar
- dsv: change foo="`bar`" to foo=`bar` (and variations thereof)
2010-11-30 18:37:31 -03:00
Werner Almesberger
5e4b41abd9
dsv/dsv: added copyright notice.
2010-10-20 07:56:10 -03:00
Werner Almesberger
c247df9701
Moved dsv over from ben-wpan (now in eda-tools/dsv/dsv)
2010-10-03 21:54:57 -03:00