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 1SR4Fi-0007Xr-VB for garchives@archives.gentoo.org; Sun, 06 May 2012 16:24:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7B511E07A8; Sun, 6 May 2012 16:15:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4450CE09BE for ; Sun, 6 May 2012 16:07:25 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ACB251B406A for ; Sun, 6 May 2012 16:07:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 78065E5437 for ; Sun, 6 May 2012 16:07:23 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1251204539.1edc608be5cb86ae31eddecb2f6753b0b98db431.sping@gentoo> Subject: [gentoo-commits] proj/emacs-tools:backups/emacs-updater@1480 commit in: / X-VCS-Repository: proj/emacs-tools X-VCS-Files: ChangeLog emacs-updater emacs-updater.8 X-VCS-Directories: / X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 1edc608be5cb86ae31eddecb2f6753b0b98db431 X-VCS-Branch: backups/emacs-updater@1480 Date: Sun, 6 May 2012 16:07:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: ec5655a5-c310-4b2c-adf7-7d58a13e8f87 X-Archives-Hash: 199bab1cfff1da5cb13edb92d93b2532 commit: 1edc608be5cb86ae31eddecb2f6753b0b98db431 Author: Ulrich M=C3=BCller gentoo org> AuthorDate: Tue Aug 25 12:48:59 2009 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Tue Aug 25 12:48:59 2009 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/emacs-tools.g= it;a=3Dcommit;h=3D1edc608b New --orphans option (and commit forgotten ChangeLog entry for --version)= . svn path=3D/emacs-updater/; revision=3D1364 --- ChangeLog | 8 ++++++++ emacs-updater | 11 ++++++++--- emacs-updater.8 | 3 +++ 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2189a14..358e64b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-08-25 Ulrich Mueller + + * emacs-updater (OPTIONS): New options --orphans|-o and --version. + (ORPHANS): New variable. + (version): New function. + (usage): Update help text. + * emacs-updater.8: Describe new options. + 2009-08-09 Ulrich Mueller =20 * emacs-updater (OPTIONS): New option --package-manager-command. diff --git a/emacs-updater b/emacs-updater index b81ce90..f6d0c5a 100755 --- a/emacs-updater +++ b/emacs-updater @@ -20,6 +20,7 @@ PM_COMMAND=3Dpm_auto # Other default variable settings EXACT=3D NOCOLOUR=3D +ORPHANS=3D PRETEND=3D =20 usage() { @@ -40,6 +41,7 @@ usage() { X -e, --exact match exact versions when remerging packages X -n, --nocolour, --nocolor X disable colour in output + X -o, --orphans list orphan files X -p, --pretend don't actually emerge packages X -P, --package-manager PM X select a package manager. PM is one out of @@ -94,8 +96,8 @@ pm_auto() { } =20 # Read in all command-line options and force English output -OPTIONS=3D$(LC_ALL=3DC getopt -o a:ehnpP: \ - --long action:,exact,help,nocolour,nocolor,pretend \ +OPTIONS=3D$(LC_ALL=3DC getopt -o a:ehnopP: \ + --long action:,exact,help,nocolour,nocolor,orphans,pretend \ --long package-manager:,package-manager-command:,version \ -n 'emacs-updater' -- "$@") [ $? -eq 0 ] || usage 1 @@ -108,6 +110,7 @@ do -h|--help) usage 0 ;; --version) version ;; -e|--exact) EXACT=3D"true"; shift 1 ;; + -o|--orphans) ORPHANS=3D"true"; shift 1 ;; -p|--pretend) PRETEND=3D"true"; shift 1 ;; -n|--nocolour|--nocolor) NOCOLOUR=3D"true"; shift 1 ;; -a|--action) @@ -256,7 +259,9 @@ NO_OF_FILES=3D$(sed -n '$=3D' "${TMPFILE}") [ ${NO_OF_FILES} -eq 1 ] && s=3D || s=3Ds message "Assigning ${NO_OF_FILES} file${s} to packages ..." =20 -if [ "${EXACT}" ]; then +if [ "${ORPHANS}" ]; then + qfile -oCR -f "${TMPFILE}" | sort -u +elif [ "${EXACT}" ]; then qfile -eqCR -f "${TMPFILE}" | sort -u | sed 's/^/=3D/' > "${PKGFILE}= " else qfile -qCR -f "${TMPFILE}" | sort -u > "${PKGFILE}" diff --git a/emacs-updater.8 b/emacs-updater.8 index 2d8e157..3789882 100644 --- a/emacs-updater.8 +++ b/emacs-updater.8 @@ -36,6 +36,9 @@ Match exact versions when remerging packages .B -n, --nocolour, --nocolor Disable colour in output .TP +.B -o, --orphans +List orphan files, i.e. files that are not owned by any package. +.TP .B -p, --pretend Don't actually emerge packages .TP 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 1SR43h-0005CU-5Y for garchives@archives.gentoo.org; Sun, 06 May 2012 16:11:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 088DCE0827; Sun, 6 May 2012 16:06:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id BCEFEE0824 for ; Sun, 6 May 2012 16:06:09 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 375FD1B406E for ; Sun, 6 May 2012 16:06:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 2CC5BE4C22 for ; Sun, 6 May 2012 16:06:07 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1251204539.1edc608be5cb86ae31eddecb2f6753b0b98db431.sping@gentoo> Subject: [gentoo-commits] proj/emacs-tools:emacs-updater commit in: / X-VCS-Repository: proj/emacs-tools X-VCS-Files: ChangeLog emacs-updater emacs-updater.8 X-VCS-Directories: / X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 1edc608be5cb86ae31eddecb2f6753b0b98db431 X-VCS-Branch: emacs-updater Date: Sun, 6 May 2012 16:06:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 8d74ca42-647c-4073-9ac8-3d17284aa6e4 X-Archives-Hash: 46d08c5f551f97944d5c02a8bf7e27a5 Message-ID: <20120506160607.Ip09hICVhCAaGC9Bdb467QtkBso5F09cTF8euMvdNHU@z> commit: 1edc608be5cb86ae31eddecb2f6753b0b98db431 Author: Ulrich M=C3=BCller gentoo org> AuthorDate: Tue Aug 25 12:48:59 2009 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Tue Aug 25 12:48:59 2009 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/emacs-tools.g= it;a=3Dcommit;h=3D1edc608b New --orphans option (and commit forgotten ChangeLog entry for --version)= . svn path=3D/emacs-updater/; revision=3D1364 --- ChangeLog | 8 ++++++++ emacs-updater | 11 ++++++++--- emacs-updater.8 | 3 +++ 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2189a14..358e64b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-08-25 Ulrich Mueller + + * emacs-updater (OPTIONS): New options --orphans|-o and --version. + (ORPHANS): New variable. + (version): New function. + (usage): Update help text. + * emacs-updater.8: Describe new options. + 2009-08-09 Ulrich Mueller =20 * emacs-updater (OPTIONS): New option --package-manager-command. diff --git a/emacs-updater b/emacs-updater index b81ce90..f6d0c5a 100755 --- a/emacs-updater +++ b/emacs-updater @@ -20,6 +20,7 @@ PM_COMMAND=3Dpm_auto # Other default variable settings EXACT=3D NOCOLOUR=3D +ORPHANS=3D PRETEND=3D =20 usage() { @@ -40,6 +41,7 @@ usage() { X -e, --exact match exact versions when remerging packages X -n, --nocolour, --nocolor X disable colour in output + X -o, --orphans list orphan files X -p, --pretend don't actually emerge packages X -P, --package-manager PM X select a package manager. PM is one out of @@ -94,8 +96,8 @@ pm_auto() { } =20 # Read in all command-line options and force English output -OPTIONS=3D$(LC_ALL=3DC getopt -o a:ehnpP: \ - --long action:,exact,help,nocolour,nocolor,pretend \ +OPTIONS=3D$(LC_ALL=3DC getopt -o a:ehnopP: \ + --long action:,exact,help,nocolour,nocolor,orphans,pretend \ --long package-manager:,package-manager-command:,version \ -n 'emacs-updater' -- "$@") [ $? -eq 0 ] || usage 1 @@ -108,6 +110,7 @@ do -h|--help) usage 0 ;; --version) version ;; -e|--exact) EXACT=3D"true"; shift 1 ;; + -o|--orphans) ORPHANS=3D"true"; shift 1 ;; -p|--pretend) PRETEND=3D"true"; shift 1 ;; -n|--nocolour|--nocolor) NOCOLOUR=3D"true"; shift 1 ;; -a|--action) @@ -256,7 +259,9 @@ NO_OF_FILES=3D$(sed -n '$=3D' "${TMPFILE}") [ ${NO_OF_FILES} -eq 1 ] && s=3D || s=3Ds message "Assigning ${NO_OF_FILES} file${s} to packages ..." =20 -if [ "${EXACT}" ]; then +if [ "${ORPHANS}" ]; then + qfile -oCR -f "${TMPFILE}" | sort -u +elif [ "${EXACT}" ]; then qfile -eqCR -f "${TMPFILE}" | sort -u | sed 's/^/=3D/' > "${PKGFILE}= " else qfile -qCR -f "${TMPFILE}" | sort -u > "${PKGFILE}" diff --git a/emacs-updater.8 b/emacs-updater.8 index 2d8e157..3789882 100644 --- a/emacs-updater.8 +++ b/emacs-updater.8 @@ -36,6 +36,9 @@ Match exact versions when remerging packages .B -n, --nocolour, --nocolor Disable colour in output .TP +.B -o, --orphans +List orphan files, i.e. files that are not owned by any package. +.TP .B -p, --pretend Don't actually emerge packages .TP