daf034f881
Maintaining the download helpers in the Makefile has proved to be a bit complex, so move it to a shell script. [Peter: redirect pushd/popd output to /dev/null] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Reviewed-by: Ryan Barnett <ryan.barnett@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
26 lines
545 B
Bash
Executable File
26 lines
545 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# We want to catch any command failure, and exit immediately
|
|
set -e
|
|
|
|
# Download helper for svn
|
|
# Call it with:
|
|
# $1: svn repo
|
|
# $2: svn revision
|
|
# $3: package's basename (eg. foobar-1.2.3)
|
|
# $4: output file
|
|
# And this environment:
|
|
# SVN : the svn command to call
|
|
# BR2_DL_DIR: path to Buildroot's download dir
|
|
|
|
repo="${1}"
|
|
rev="${2}"
|
|
basename="${3}"
|
|
output="${4}"
|
|
|
|
pushd "${BR2_DL_DIR}" >/dev/null
|
|
${SVN} export "${repo}@${rev}" "${basename}"
|
|
tar czf "${output}" "${basename}"
|
|
rm -rf "${basename}"
|
|
popd >/dev/null
|