public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Pandu Poluan <pandu@poluan.info>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] move to xfce and forget kde and gnome
Date: Sat, 20 Aug 2011 08:17:57 +0700	[thread overview]
Message-ID: <CAA2qdGWrjk95W17P0+3fPU8aua9Ac=pA+it7bk43QfE-56bfig@mail.gmail.com> (raw)
In-Reply-To: <20110819231407.GA4717@waltdnes.org>

Cool! I can see myself using this script routinely.

That said, since one *must* check the resulting script anyway, why not
start the editor directly after chmod? E.g.:

$EDITOR cleanscript

Oh, also don't forget to delete cleanscript.000 ;)

Rgds,


On 2011-08-20, Walter Dnes <waltdnes@waltdnes.org> wrote:
> On Fri, Aug 19, 2011 at 05:19:29PM +0200, Space Cake wrote
>
>> I'll try to avoid as many kde/gnome application as I can :) I don't
>> really like them because I want to have my window in front of me right
>> when  click on the icon :). I just started to clean-up my useflags,
>> changed to desktop profile and I'll leave my machine here for the
>> weekend to re-emerge everything is needed for this change. I'm sure
>> some revdep-rebuild and depclean still waiting for me and also I think
>> lot of kde / gnome libs will remain because of the dependencies...
>
>   Here's my "autodepclean" script.  It parses the output of a pretend
> depclean and generates, but does not execute, a script called
> "cleanscript", which has to be run as root.  Note the warning to check
> "cleanscript" before running it.  Remove the commands to unmerge the
> stuff you want to keep.  In addition to some gentoo-sources kernels, it
> now wants to remove nano, ever since "virtual/editor" showed up in
> Gentoo.  I get the warning...
>
> !!! 'app-editors/nano' (virtual/editor) is part of your system profile.
> !!! Unmerging it may be damaging to your system.
>
>   Here's the script...
>
> #!/bin/bash
> # autodepclean script v 0.01 released under GPL v3 by Walter Dnes 2010/08/18
> # Generates a file "cleanscript" to remove unused ebuilds, including
> # buildtime-only dependancies.
> #
> # Warning; this script is still beta.  I recommend that you check the output
> # in cleanscript before running it.  It is agressive about removing unused
> # gentoo-sources versions.  This includes those that are higher than your
> # current kernel.  This is technically correct for removing unused ebuilds,
> # but it may not be what you want.
> #
> echo "#!/bin/bash" > cleanscript
> echo "#" > cleanscript.000
> emerge --pretend --depclean |\
>   grep -A1 "^ .*/" |\
>   grep -v "^ \*" |\
>   grep -v "^--" |\
>   sed ":/: {
> N
> s:\n::
> s/    selected: /-/
> s/^ /emerge --depclean =/
> }" >> cleanscript.000
> while read
> do
>   echo "${REPLY}" >> cleanscript
>   if [ "${REPLY:0:6}" == "emerge" ]; then
>     echo "revdep-rebuild" >> cleanscript
>   fi
> done < cleanscript.000
> chmod 744 cleanscript
>
>
> --
> Walter Dnes <waltdnes@waltdnes.org>
>
>


-- 
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/



  parent reply	other threads:[~2011-08-20  1:19 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-19 12:02 [gentoo-user] move to xfce and forget kde and gnome Space Cake
2011-08-19 12:54 ` [gentoo-user] " Nikos Chantziaras
2011-08-19 14:07   ` Space Cake
2011-08-19 14:27     ` jdm
2011-08-19 14:41       ` Nikos Chantziaras
2011-08-19 14:39     ` Nikos Chantziaras
2011-08-19 16:03   ` Peter Humphrey
2011-08-22  9:47   ` Space Cake
2011-08-22 10:32     ` Neil Bothwick
2011-08-22 11:30     ` Michael Mol
2011-08-22 17:08       ` Michael Mol
2011-08-19 14:50 ` [gentoo-user] " András Csányi
2011-08-19 15:19   ` Space Cake
2011-08-19 23:14     ` Walter Dnes
2011-08-20  0:34       ` Peter Humphrey
2011-08-20  4:02         ` Walter Dnes
2011-08-20  8:07           ` Alan McKinnon
2011-08-20 10:32             ` Peter Humphrey
2011-08-20  1:17       ` Pandu Poluan [this message]
2011-08-20  4:10         ` Walter Dnes
2011-08-19 19:54   ` Daniel da Veiga

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='CAA2qdGWrjk95W17P0+3fPU8aua9Ac=pA+it7bk43QfE-56bfig@mail.gmail.com' \
    --to=pandu@poluan.info \
    --cc=gentoo-user@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