blob: c157ca8d5b98544417ad4dd3ea220b69a85b8b95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env 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}"
|