kumquat-buildroot/support/download/cvs
Yann E. MORIN 389f50dfb6 support/download: convert cvs to use the wrapper
This drastically simplifies the cvs helper, as it no longer has to deal
with atomically saving the downloaded archive.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-08-04 20:12:24 +02:00

26 lines
588 B
Bash
Executable File

#!/bin/bash
# We want to catch any unexpected failure, and exit immediately
set -e
# Download helper for cvs, to be called from the download wrapper script
# Expected arguments:
# $1: output file
# $2: cvs repo
# $3: cvs revision
# $4: package's name (eg. foobar)
# $5: package's basename (eg. foobar-1.2.3)
# And this environment:
# CVS : the cvs command to call
output="${1}"
repo="${2}"
rev="${3}"
rawname="${4}"
basename="${5}"
${CVS} -z3 -d":pserver:anonymous@${repo}" \
co -d "${basename}" -r ":${rev}" -P "${rawname}"
tar czf "${output}" "${basename}"