From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QuaDR-0006cl-OV for garchives@archives.gentoo.org; Sat, 20 Aug 2011 01:19:14 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C22D21C05D; Sat, 20 Aug 2011 01:19:04 +0000 (UTC) Received: from svr-us4.tirtonadi.com (unknown [69.65.43.212]) by pigeon.gentoo.org (Postfix) with ESMTP id 1F73B21C05D for ; Sat, 20 Aug 2011 01:18:01 +0000 (UTC) Received: from mail-fx0-f53.google.com ([209.85.161.53]) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1QuaCG-002sV7-Oz for gentoo-user@lists.gentoo.org; Sat, 20 Aug 2011 08:18:00 +0700 Received: by fxd23 with SMTP id 23so2787111fxd.40 for ; Fri, 19 Aug 2011 18:17:57 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.223.46.90 with SMTP id i26mr22445faf.83.1313803077426; Fri, 19 Aug 2011 18:17:57 -0700 (PDT) Received: by 10.223.96.11 with HTTP; Fri, 19 Aug 2011 18:17:57 -0700 (PDT) In-Reply-To: <20110819231407.GA4717@waltdnes.org> References: <4E4E50EF.9030904@gmail.com> <4E4E7F01.5060609@gmail.com> <20110819231407.GA4717@waltdnes.org> Date: Sat, 20 Aug 2011 08:17:57 +0700 Message-ID: Subject: Re: [gentoo-user] move to xfce and forget kde and gnome From: Pandu Poluan To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Archives-Salt: X-Archives-Hash: d97a6dd5af96a215a2e6314df6295ff7 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 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 > > -- -- Pandu E Poluan - IT Optimizer My website: http://pandu.poluan.info/