summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_get.sh
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-06-15 22:29:32 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-06-15 22:29:32 +0000
commit8a86cf7604af48caf88b3b6bf0572fb4a8c74166 (patch)
treec38baf08e404e9f7c2ef29abe983fdd60543b427 /scripts/lib/ptxd_make_world_get.sh
parentb61b93700f81d2827cd1c77d40d1b6bab3aaec7f (diff)
downloadptxdist-8a86cf7604af48caf88b3b6bf0572fb4a8c74166.tar.gz
ptxdist-8a86cf7604af48caf88b3b6bf0572fb4a8c74166.tar.xz
[ptxd_make_world_get] provide generic get function
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10792 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/lib/ptxd_make_world_get.sh')
-rw-r--r--scripts/lib/ptxd_make_world_get.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_get.sh b/scripts/lib/ptxd_make_world_get.sh
new file mode 100644
index 000000000..6f586ffbf
--- /dev/null
+++ b/scripts/lib/ptxd_make_world_get.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# get stuff
+#
+ptxd_make_world_get() {
+ ptxd_make_world_init &&
+
+ if [ -n "${pkg_src}" -a \! -e "${pkg_src}" ]; then
+ ptxd_make_get "${pkg_url}"
+ fi
+}
+export -f ptxd_make_world_get