summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
Diffstat (limited to 'support')
-rwxr-xr-xsupport/download/bzr19
1 files changed, 19 insertions, 0 deletions
diff --git a/support/download/bzr b/support/download/bzr
new file mode 100755
index 0000000000..f07732e7e0
--- /dev/null
+++ b/support/download/bzr
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# We want to catch any command failure, and exit immediately
+set -e
+
+# Download helper for bzr
+# Call it with:
+# $1: bzr repo
+# $2: bzr revision
+# $3: output file
+# And this environment:
+# BZR : the bzr command to call
+# BR2_DL_DIR: path to Buildroot's download dir
+
+repo="${1}"
+rev="${2}"
+output="${3}"
+
+${BZR} export "${output}" "${repo}" -r "${rev}"
OpenPOWER on IntegriCloud