kumquat-buildroot/support/download/bzr
Yann E. MORIN c48d45e342 support/download: convert bzr to use the wrapper
This drastically simplifies the bzr 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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-08-04 20:12:24 +02:00

21 lines
456 B
Bash
Executable File

#!/bin/bash
# We want to catch any unexpected failure, and exit immediately
set -e
# Download helper for bzr, to be called from the download wrapper script
# Expected arguments:
# $1: output file
# $2: bzr repo
# $3: bzr revision
# $4: basename
# And this environment:
# BZR : the bzr command to call
output="${1}"
repo="${2}"
rev="${3}"
basename="${4}"
${BZR} export --root="${basename}/" --format=tgz "${output}" "${repo}" -r "${rev}"