diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-05-25 11:39:29 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-05-26 19:07:37 +0200 |
commit | 388520bc1380738dfa953627e6cd165bfb67540e (patch) | |
tree | 418bc5003932bb7febb019fd1b62a2dc2d26a7a3 /scripts | |
parent | 4387ed63e885768a21f51f65fb5ce0a1e79806a2 (diff) | |
download | ptxdist-388520bc1380738dfa953627e6cd165bfb67540e.tar.gz ptxdist-388520bc1380738dfa953627e6cd165bfb67540e.tar.xz |
ptxd_make_xpkg_pkg: make it possible to use "-" as source for install_tree
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_make_xpkg_pkg.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh index 38c0a40fe..bd45b7db9 100644 --- a/scripts/lib/ptxd_make_xpkg_pkg.sh +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh @@ -425,7 +425,13 @@ ptxd_install_find() { export -f ptxd_install_find ptxd_install_tree() { - ptxd_install_find "$@" || + local src="${1}" + local dst="${2}" + shift 2 + if [ "${src}" = "-" ]; then + src="${pkg_pkg_dir}${dst}" + fi + ptxd_install_find "${src}" "${dst}" "$@" || ptxd_install_error "install_tree failed!" } export -f ptxd_install_tree |