summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-06-14 22:22:21 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-06-14 22:22:21 +0000
commitf785282cd3baa89885cb617d06988a4a2a31bbe9 (patch)
tree4e8dd969bda3fb19a0a60b003d68ef6a5531c628 /bin
parentdf06e87f07aab0fea9072d678cd822079e31d1f0 (diff)
downloadptxdist-f785282cd3baa89885cb617d06988a4a2a31bbe9.tar.gz
ptxdist-f785282cd3baa89885cb617d06988a4a2a31bbe9.tar.xz
[ptxdist] cleanup usage of "local" for non globar vars
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10769 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ptxdist12
1 files changed, 5 insertions, 7 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 1932b5b69..50b6ab980 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -423,13 +423,13 @@ check_dirs_prefix() {
#
check_dirs() {
local ptxconf_sysroot_target ptxconf_sysroot_host ptxconf_sysroot_cross
- local dir testfile_upper testfile_lower
ptxconf_sysroot_host="$(ptxd_get_ptxconf PTXCONF_SYSROOT_HOST)" &&
ptxconf_sysroot_cross="$(ptxd_get_ptxconf PTXCONF_SYSROOT_CROSS)" &&
ptxconf_sysroot_target="$(ptxd_get_ptxconf PTXCONF_SYSROOT_TARGET)" || return
# check for r/w and create standard directory layout
+ local dir
for dir in \
"${ptxconf_sysroot_host}" \
"${ptxconf_sysroot_cross}" \
@@ -458,10 +458,8 @@ check_dirs() {
# create dir for ccache links
if [ -n "${PTX_CCACHE_DIR}" ]; then
- if [ -e "${PTX_CCACHE_DIR}" ]; then
- rm -rf -- "${PTX_CCACHE_DIR}" || ptxd_bailout "deleting of dir failed: '${PTX_CCACHE_DIR}'"
- fi
- mkdir -p "${PTX_CCACHE_DIR}" || ptxd_bailout "cannot create dir: '${PTX_CCACHE_DIR}'"
+ rm -rf -- "${PTX_CCACHE_DIR}" &&
+ mkdir -p -- "${PTX_CCACHE_DIR}" || ptxd_bailout "cannot create dir: '${PTX_CCACHE_DIR}'"
fi
# check for case sensitive file system
@@ -470,8 +468,8 @@ check_dirs() {
"${CROSS_BUILDDIR}" \
"${HOST_BUILDDIR}" \
; do
- testfile_lower="${dir}/.secret-world-domination-project"
- testfile_upper="${dir}/.Secret-World-Domination-Project"
+ local testfile_lower="${dir}/.secret-world-domination-project"
+ local testfile_upper="${dir}/.Secret-World-Domination-Project"
echo lower > "${testfile_lower}"
echo upper > "${testfile_upper}"