SVN: toys/tools/cleanbuild/cleanpoldekcache

sparky sparky at pld-linux.org
Thu Apr 8 18:29:42 CEST 2010


Author: sparky
Date: Thu Apr  8 18:29:41 2010
New Revision: 11323

Modified:
   toys/tools/cleanbuild/cleanpoldekcache
Log:
- print ammount of space saved


Modified: toys/tools/cleanbuild/cleanpoldekcache
==============================================================================
--- toys/tools/cleanbuild/cleanpoldekcache	(original)
+++ toys/tools/cleanbuild/cleanpoldekcache	Thu Apr  8 18:29:41 2010
@@ -2,6 +2,7 @@
 
 CACHEDIR="$PWD/poldekcache"
 
+ignore() { }
 [ -r .cleanbuildrc ] && . ./.cleanbuildrc
 
 export LC_ALL=C
@@ -9,6 +10,7 @@
 unset LANG
 
 cd "$CACHEDIR" || exit 1
+SIZE_IN=$(du -s . | sed 's/\t.*//')
 
 cleandir()
 {
@@ -50,4 +52,7 @@
 	esac
 done
 
+SIZE_OUT=$(du -s . | sed 's/\t.*//')
+echo "Removed $(expr $SIZE_IN - $SIZE_OUT) kilobytes of data from poldek cache"
+
 # vim: ts=4 sw=4 filetype=sh


More information about the pld-cvs-commit mailing list