diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-06-15 22:29:32 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-06-15 22:29:32 +0000 |
commit | 8a86cf7604af48caf88b3b6bf0572fb4a8c74166 (patch) | |
tree | c38baf08e404e9f7c2ef29abe983fdd60543b427 /scripts/lib/ptxd_make_world_get.sh | |
parent | b61b93700f81d2827cd1c77d40d1b6bab3aaec7f (diff) | |
download | ptxdist-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.sh | 20 |
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 |