public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Wim Muskee" <wimmuskee@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/localepurge:master commit in: /
Date: Fri,  7 Dec 2012 19:51:20 +0000 (UTC)	[thread overview]
Message-ID: <1354909866.228b55c94be5f3f23a6c7d61f8f08ad2973013f1.wim@gentoo> (raw)

commit:     228b55c94be5f3f23a6c7d61f8f08ad2973013f1
Author:     Wim Muskee <wimmuskee <AT> gmail <DOT> com>
AuthorDate: Fri Dec  7 19:51:06 2012 +0000
Commit:     Wim Muskee <wimmuskee <AT> gmail <DOT> com>
CommitDate: Fri Dec  7 19:51:06 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/localepurge.git;a=commit;h=228b55c9

Add commandline option to update localelist.

---
 localepurge |    9 +++++++--
 1 files 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"


             reply	other threads:[~2012-12-07 19:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-07 19:51 Wim Muskee [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-01-15 17:46 [gentoo-commits] proj/localepurge:master commit in: / Wim Muskee
2012-12-07 21:03 Wim Muskee
2012-12-07 19:26 Wim Muskee
2012-12-05 17:45 Wim Muskee
2012-12-05 17:45 Wim Muskee
2012-12-05 17:04 Wim Muskee
2012-12-04 21:11 Wim Muskee
2012-12-04 21:11 Wim Muskee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1354909866.228b55c94be5f3f23a6c7d61f8f08ad2973013f1.wim@gentoo \
    --to=wimmuskee@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox