mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
pkg-infra: move the cvs download helper to a script
Maintaining the download helpers in the Makefile has proved to be a bit complex, so move it to a shell script. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
daf034f881
commit
f4526c053f
27
support/download/cvs
Executable file
27
support/download/cvs
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# We want to catch any command failure, and exit immediately
|
||||
set -e
|
||||
|
||||
# Download helper for cvs
|
||||
# Call it with:
|
||||
# $1: cvs repo
|
||||
# $2: cvs revision
|
||||
# $3: package's name (eg. foobar)
|
||||
# $4: package's basename (eg. foobar-1.2.3)
|
||||
# $5: output file
|
||||
# And this environment:
|
||||
# CVS : the cvs command to call
|
||||
# BR2_DL_DIR: path to Buildroot's download dir
|
||||
|
||||
repo="${1}"
|
||||
rev="${2}"
|
||||
rawname="${3}"
|
||||
basename="${4}"
|
||||
output="${5}"
|
||||
|
||||
cd "${BR2_DL_DIR}"
|
||||
${CVS} -z3 -d":pserver:anonymous@${repo}" \
|
||||
co -d "${basename}" -r ":${rev}" -P "${rawname}"
|
||||
tar czf "${output}" "${basename}"
|
||||
rm -rf "${basename}"
|
||||
Reference in New Issue
Block a user