summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-02-22 00:11:13 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-02-22 13:56:39 +0100
commit2e4a536201b2781a5cb3394f5d6d27d62359b199 (patch)
tree8ff228ac20ce46ba5359f9d7fad9e93b0abd6f3e /bin
parent949f6d43bad929ab2e1c0c27e73ab3a56173b572 (diff)
downloadptxdist-2e4a536201b2781a5cb3394f5d6d27d62359b199.tar.gz
ptxdist-2e4a536201b2781a5cb3394f5d6d27d62359b199.tar.xz
[ptxdist] make "clean root" more tidy
Also remove: - imagedir - the xpkg.map files Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ptxdist3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 57c848702..42a5bdc08 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -835,6 +835,8 @@ clean() {
# we want to clean the root dir
if [ "${1}" = "root" ]; then
echo
+ echo "${PROMPT}cleaning image directory..."
+ rm -fr -- "${IMAGEDIR}"
echo "${PROMPT}cleaning root directory..."
rm -fr -- "${ROOTDIR}"
rm -fr -- "${ROOTDIR_DEBUG}"
@@ -842,6 +844,7 @@ clean() {
rm -fr -- "${PKGDIR}"/*.ipk
echo "${PROMPT}cleaning targetinstall stages..."
rm -f -- "${STATEDIR}"/*.targetinstall*
+ rm -f -- "${STATEDIR}"/*.xpkg.map
echo "${PROMPT}done."
echo
return