Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / pkg_install / dist / admin / download-vulnerability-list.sh.in
blob1038c0d293c57d0672ef833c7602dcc88fe09522
1 #!/bin/sh
3 pkg_admin=@PKG_ADMIN@
5 usage() {
6 echo 'Usage: download-vulnerability-list -hs [-c config_file]' >& $2
7 echo "Please use \`\`pkg_admin fetch-pkg-vulnerabilities'' instead." >& $2
8 exit $1
11 do_sign=
13 args=`getopt c:hs $*`
14 if [ $? -ne 0 ]; then
15 usage 1 2
18 set -- $args
20 while [ $# -gt 0 ]; do
21 case "$1" in
22 -c)
23 echo "The download-vulnerability-list wrapper does not support -c" >&2
24 echo "Please switch to \`\`pkg_admin fetch-pkg-vulnerabilities''." >&2
25 exit 1
27 -h)
28 usage 0 1
30 -s)
31 do_sign=-s
33 esac
34 shift
35 done
37 exec ${pkg_admin} fetch-pkg-vulnerabilities ${do_sign}