summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-02-13 11:48:32 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-02-13 11:48:32 +0000
commitd963ecaceefa5dc3ce7ffd7889d768569685e537 (patch)
tree2b8c1697a7baf2a0c36c0e19a72b1d0cc326359e /bin
parentb2098a3c992f8da5d2039eab135b5c6614ea20ba (diff)
downloadptxdist-d963ecaceefa5dc3ce7ffd7889d768569685e537.tar.gz
ptxdist-d963ecaceefa5dc3ce7ffd7889d768569685e537.tar.xz
* scripts/libptxdist.sh, bin/ptxdist:
let "clean" work again git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7766 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ptxdist11
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 7a98dbb37..dcf409c3d 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -141,7 +141,7 @@ check_version () {
#
check_ptxconfig() {
- if [ ! -e "$PTXCONFIG" ]; then
+ if [ ! -e "${PTXCONFIG}" ]; then
echo
echo "${PROMPT}error: ptxconfig file is missing"
echo "${PROMPT}error: please 'ptxdist clone' an existing project"
@@ -531,8 +531,9 @@ clean() {
fi
for bdir in `find "${dir}" -maxdepth 1 -mindepth 1 -type l`; do
pushd "${bdir}" > /dev/null
+ echo -n "${PROMPT}running \"make clean\" in \"${bdir#${dir}/}\"... "
make clean 1> /dev/null 2>&1
- echo "${PROMPT}running \"make clean\" in \"${bdir#${dir}/}\"..."
+ echo "done"
popd > /dev/null
done
rm -rf "${dir}"
@@ -540,9 +541,9 @@ clean() {
if test -f "${PTXCONFIG}"; then
echo "${PROMPT}removing sysroot directories..."
- ptxconf_prefix=$(. "${PTXCONFIG}" && echo ${PTXCONF_PREFIX})
- ptxconf_host_prefix=$(. "${PTXCONFIG}" && echo ${PTXCONF_HOST_PREFIX})
- ptxconf_cross_prefix=$(. "${PTXCONFIG}" && echo ${PTXCONF_CROSS_PREFIX})
+ ptxconf_prefix="`ptxd_get_ptxconf PTXCONF_PREFIX`"
+ ptxconf_host_prefix="`ptxd_get_ptxconf PTXCONF_HOST_PREFIX`"
+ ptxconf_cross_prefix="`ptxd_get_ptxconf PTXCONF_CROSS_PREFIX`"
for dir in "${ptxconf_prefix}" "${ptxconf_host_prefix}" "${ptxconf_cross_prefix}"; do
if test \! -d "${dir}"; then