From 228b55c94be5f3f23a6c7d61f8f08ad2973013f1 Mon Sep 17 00:00:00 2001 From: Wim Muskee Date: Fri, 7 Dec 2012 20:51:06 +0100 Subject: Add commandline option to update localelist. --- localepurge | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/localepurge b/localepurge index 28e2091..e4699f9 100755 --- a/localepurge +++ b/localepurge @@ -62,10 +62,11 @@ ayuda () { einfo "Usage: `basename $0` [options]" echo einfo "${BOLD}-debug (-d) ${NORMAL} : debug mode." - einfo "${BOLD}-help (-h) ${NORMAL} : show this help." - einfo "${BOLD}-list (-l) ${NORMAL} : list directories to be cleared" + einfo "${BOLD}-help (-h) ${NORMAL} : show this help." + einfo "${BOLD}-list (-l) ${NORMAL} : list directories to be cleared." einfo "${BOLD}-nocolor (-nc) ${NORMAL} : no color mode." einfo "${BOLD}-pretend (-p) ${NORMAL} : pretend mode." + einfo "${BOLD}-update (-u) ${NORMAL} : update localelist." einfo "${BOLD}-verbose (-v) ${NORMAL} : verbose mode." einfo "${BOLD}-version ${NORMAL} : show version." echo @@ -132,6 +133,10 @@ for x in $@; do ACTION=print SHOWFREEDSPACE=disabled + elif [ "$x" = "-update" ] || [ "$x" = "-u" ]; then + createlist + exit 0 + elif [ "$x" = "-verbose" ] || [ "$x" = "-v" ]; then VERBOSE=enabled ACTION="rm -vf" -- cgit v1.2.3-65-gdbad