package/linux-firmware: split bcm43xx / bcm43xxx
[buildroot-gz.git] / support / download / cvs
blobc92d491fd1bc66b13623aaacedf25c6a890f2807
1 #!/bin/bash
3 # We want to catch any unexpected failure, and exit immediately
4 set -e
6 # Download helper for cvs, to be called from the download wrapper script
7 # Expected arguments:
8 # $1: output file
9 # $2: cvs repo
10 # $3: cvs revision
11 # $4: package's name (eg. foobar)
12 # $5: package's basename (eg. foobar-1.2.3)
13 # And this environment:
14 # CVS : the cvs command to call
16 output="${1}"
17 repo="${2}"
18 rev="${3}"
19 rawname="${4}"
20 basename="${5}"
22 ${CVS} -z3 -d":pserver:anonymous@${repo}" \
23 co -d "${basename}" -r ":${rev}" -P "${rawname}"
25 tar czf "${output}" "${basename}"