I have an improverd version of localepurge. I can't write ebuilds. Therefore I post the bash script here. The new things are: * Search several dirs. * Color coded output.
Created attachment 75552 [details] Improved version of app-admin/localepurge
Install the portage version FIRST as it creates some other needed files.
Sorry just today i relased a new veresion (0.4) with colored output, more locales and other stuff just a few minutes before to read this bug. So thanks for all i will try to implement your "multiple dir search" stuff regards
i just released a new version 0.5 with multi-dir search :) try it (it's based in your code)
(In reply to comment #4) > i just released a new version 0.5 with multi-dir search :) > try it (it's based in your code) > When is it in portage?
it is now in the main cvs so i will be xpanded to all th emirrors soon maybe 2 hours or less
One thing: if [ "$SHOWFREEDSPACE" = "enabled" ]; then MANAFTER=$(df -P $MANPAGEDIR | awk '{if ( NR==2 ) { print $3 }}') MANSUM=$(($MANBEFORE - $MANAFTER)) MANTOTAL=$(($MANTOTAL + $MANSUM)) if [ ! $MANBEFORE = $MANAFTER ]; then einfo "localepurge: Disk space freed in $MANPAGEDIR:${BOLD}"$MANTOTAL"K${NORMAL}" fi fi It should be einfo "localepurge: Disk space freed in $MANPAGEDIR:${BOLD}"$MANSUM"K${NORMAL}
I think using tput is better than hardcoding the colors. Am I wrong?
And you forgot: /opt/sun-jre-bin-*/lib/locale
fixed :)