a92290aa20
This drastically simplifies the svn 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> Tested-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> (Tested by running 'make open2300-source') Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
23 lines
482 B
Bash
Executable File
23 lines
482 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# We want to catch any unexpected failure, and exit immediately
|
|
set -e
|
|
|
|
# Download helper for svn, to be called from the download wrapper script
|
|
# Expected arguments:
|
|
# $1: output file
|
|
# $2: svn repo
|
|
# $3: svn revision
|
|
# $4: package's basename (eg. foobar-1.2.3)
|
|
# And this environment:
|
|
# SVN : the svn command to call
|
|
|
|
output="${1}"
|
|
repo="${2}"
|
|
rev="${3}"
|
|
basename="${4}"
|
|
|
|
${SVN} export "${repo}@${rev}" "${basename}"
|
|
|
|
tar czf "${output}" "${basename}"
|