Change Details
dsv/dsv |
2 | 2 | # |
3 | 3 | # dsv - Improved data sheet viewer |
4 | 4 | # |
5 | | # Written 2010-2014, 2016 by Werner Almesberger |
6 | | # Copyright 2010-2014, 2016 Werner Almesberger |
| 5 | # Written 2010-2014, 2016, 2018 by Werner Almesberger |
| 6 | # Copyright 2010-2014, 2016, 2018 Werner Almesberger |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify |
9 | 9 | # it under the terms of the GNU General Public License as published by |
... | ... | |
33 | 33 | echo "usage: $0 [-p] [-u] <component>" 1>&2 |
34 | 34 | echo " $0 help" 1>&2 |
35 | 35 | echo " $0 [ls]" 1>&2 |
36 | | echo " $0 setup <info-file> ..." 1>&2 |
| 36 | echo " $0 [-c] setup <info-file> ..." 1>&2 |
37 | 37 | echo 1>&2 |
| 38 | echi " -c don't check server certificates" 1>&2 |
38 | 39 | echo " -p show the path instead of displaying the file " 1>&2 |
39 | 40 | echo " -u show source URL instead of displaying the file " 1>&2 |
40 | 41 | exit 1 |
... | ... | |
43 | 44 | |
44 | 45 | do_wget() |
45 | 46 | { |
46 | | wget -nv -U "dsv/1.0" "$@" |
| 47 | wget -nv -U "dsv/1.0" $wget_opts "$@" |
47 | 48 | } |
48 | 49 | |
49 | 50 | |
... | ... | |
215 | 216 | |
216 | 217 | path=false |
217 | 218 | show_url=false |
| 219 | wget_opts= |
218 | 220 | |
219 | 221 | while true; do |
220 | 222 | case "$1" in |
| 223 | -c) wget_opts=--no-check-certificate |
| 224 | shift;; |
221 | 225 | -p) path=true |
222 | 226 | shift;; |
223 | 227 | -u) show_url=true |
Download the corresponding diff file