Date:2018-03-26 11:24:20 (5 years 8 months ago)
Author:Werner Almesberger
Commit:1bb97dd6642e145b5cb5edd5619ac336f5f73fec
Message:dsv/dsv: new option -c to --no-check-certificate

Files: dsv/dsv (4 diffs)

Change Details

dsv/dsv
22#
33# dsv - Improved data sheet viewer
44#
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
77#
88# This program is free software; you can redistribute it and/or modify
99# it under the terms of the GNU General Public License as published by
...... 
3333    echo "usage: $0 [-p] [-u] <component>" 1>&2
3434    echo " $0 help" 1>&2
3535    echo " $0 [ls]" 1>&2
36    echo " $0 setup <info-file> ..." 1>&2
36    echo " $0 [-c] setup <info-file> ..." 1>&2
3737    echo 1>&2
38    echi " -c don't check server certificates" 1>&2
3839    echo " -p show the path instead of displaying the file " 1>&2
3940    echo " -u show source URL instead of displaying the file " 1>&2
4041    exit 1
...... 
4344
4445do_wget()
4546{
46    wget -nv -U "dsv/1.0" "$@"
47    wget -nv -U "dsv/1.0" $wget_opts "$@"
4748}
4849
4950
...... 
215216
216217path=false
217218show_url=false
219wget_opts=
218220
219221while true; do
220222    case "$1" in
223        -c) wget_opts=--no-check-certificate
224            shift;;
221225        -p) path=true
222226            shift;;
223227        -u) show_url=true

Archive Download the corresponding diff file

Branches:
master



interactive