The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / support / download / cvs
1 #!/usr/bin/env bash
2
3 # We want to catch any unexpected failure, and exit immediately
4 set -e
5
6 # Download helper for cvs, to be called from the download wrapper script
7 #
8 # Call it as:
9 #   .../cvs [-q] OUT_FILE CVS_URL REV PKG_NAME BASENAME
10 #
11 # Environment:
12 #   CVS      : the cvs command to call
13
14 verbose=
15 while getopts :q OPT; do
16     case "${OPT}" in
17     q)  verbose=-Q;;
18     \?) printf "unknown option '%s'\n" "${OPTARG}" >&2; exit 1;;
19     esac
20 done
21 shift $((OPTIND-1))
22
23 output="${1}"
24 repo="${2}"
25 rev="${3}"
26 rawname="${4}"
27 basename="${5}"
28
29 ${CVS} ${verbose} -z3 -d":pserver:anonymous@${repo}" \
30        co -d "${basename}" -r ":${rev}" -P "${rawname}"
31
32 tar czf "${output}" "${basename}"