summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2014-07-02 23:11:24 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-07-03 00:03:59 +0200
commit45261f1fb7d6ab14e858580080b24e1a3bd5575c (patch)
treefd16146918b044f8b4dcf3e5ca8cae70795b8894 /support
parent4bee7629eeb524b774357f57fbe53f136ae812c0 (diff)
downloadbuildroot-45261f1fb7d6ab14e858580080b24e1a3bd5575c.tar.gz
buildroot-45261f1fb7d6ab14e858580080b24e1a3bd5575c.zip
pkg-infra: move the bzr download helper to a script
Maintaining the download helpers in the Makefile has proved to be a bit complex, so move it to a shell script. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
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