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.77) (envelope-from ) id 1SrwF2-0002Nh-G9 for garchives@archives.gentoo.org; Thu, 19 Jul 2012 19:18:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80B2BE065A; Thu, 19 Jul 2012 19:18:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3B892E065A for ; Thu, 19 Jul 2012 19:18:00 +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 7CF2C1B404E for ; Thu, 19 Jul 2012 19:17:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 3AA62E5434 for ; Thu, 19 Jul 2012 19:17:58 +0000 (UTC) From: "Maxim Koltsov" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maxim Koltsov" Message-ID: <1342725456.c222749135cb79322b9909725d1d332296df77c0.maksbotan@gentoo> Subject: [gentoo-commits] dev/maksbotan:master commit in: Documentation/ X-VCS-Repository: dev/maksbotan X-VCS-Files: Documentation/leech_bump.sh X-VCS-Directories: Documentation/ X-VCS-Committer: maksbotan X-VCS-Committer-Name: Maxim Koltsov X-VCS-Revision: c222749135cb79322b9909725d1d332296df77c0 X-VCS-Branch: master Date: Thu, 19 Jul 2012 19:17:58 +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: 0fe25473-1ed5-49ba-bdd7-436c28e149d1 X-Archives-Hash: 1fa5931bfed5f65a50d2eb3c279f4c95 commit: c222749135cb79322b9909725d1d332296df77c0 Author: Maxim Koltsov gentoo org> AuthorDate: Thu Jul 19 19:17:36 2012 +0000 Commit: Maxim Koltsov gentoo org> CommitDate: Thu Jul 19 19:17:36 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/maksbotan.git;= a=3Dcommit;h=3Dc2227491 Add list mode to leechcraft script, make several comsetic fixes --- Documentation/leech_bump.sh | 35 +++++++++++++++++++++++------------ 1 files changed, 23 insertions(+), 12 deletions(-) diff --git a/Documentation/leech_bump.sh b/Documentation/leech_bump.sh index 0f6f932..5895b77 100755 --- a/Documentation/leech_bump.sh +++ b/Documentation/leech_bump.sh @@ -16,7 +16,7 @@ changelog_helper() { fi } =20 -if [[ ${#} -lt 2 && ${1} !=3D "repoman" ]]; then +if [[ ${#} -lt 2 && ${1} !=3D "repoman" && ${1} !=3D "list" ]]; then eerror "Not enough arguments" einfo "Usage: ${0} mode arguments" einfo "Supported modes are:" @@ -26,6 +26,7 @@ if [[ ${#} -lt 2 && ${1} !=3D "repoman" ]]; then einfo " - delete" einfo " - changelog" einfo " - keyword" + einfo " - list" einfo "Supported arguments are:" einfo " -m --message Commit message" einfo " -c --changelog Update ChangeLog" @@ -37,7 +38,7 @@ if [[ ${#} -lt 2 && ${1} !=3D "repoman" ]]; then fi =20 case "${1}" in - bump|commit|repoman|delete|changelog|keyword) ;; + bump|commit|repoman|delete|changelog|keyword|list) ;; *) eerror "Unknown mode ${1}" exit 1 @@ -59,7 +60,7 @@ while (($#)); do -N|--no-changelog) run_changelog=3D"0" ;; - -v|--version) + -v|--version) version=3D"${2}" shift ;; @@ -95,9 +96,9 @@ case $mode in run_changelog=3D"1" fi if [[ -z "${message}" ]]; then - message_stub=3D1 + message_stub=3D"1" fi - if [[ -z ${keywords} ]]; then + if [[ -z ${keyword} ]]; then if [[ ${bump_from}} =3D=3D 9999 ]]; then keyword=3D"~amd64 ~x86" else @@ -141,8 +142,10 @@ if [[ ! -e ./profiles/repo_name ]]; then exit 1 fi =20 -einfo "Scanning tree for LeechCraft packages" -echo +if [[ ${mode} !=3D "list" ]]; then + einfo "Scanning tree for LeechCraft packages" + echo +fi =20 for atom in */*; do CATEGORY=3D${atom%/*} @@ -153,8 +156,10 @@ for atom in */*; do if [[ ${PN} !=3D leechcraft-* ]]; then continue fi - einfo "Going to ${atom}" - eindent + if [[ ${mode} !=3D "list" ]]; then + einfo "Going to ${atom}" + eindent + fi cd ${atom} =20 case ${mode} in @@ -234,8 +239,7 @@ for atom in */*; do fi =20 ebegin "Deleting ${PN}-${version}" - rm ${PN}-${version}.ebuild - cvs rm ${PN}-${version}.ebuild > /dev/null + cvs rm -f ${PN}-${version}.ebuild > /dev/null eend $? =20 if [[ ${run_changelog} =3D=3D "1" ]]; then @@ -276,9 +280,16 @@ for atom in */*; do eend $? =20 ;; + list) + if [[ ${version} ]]; then + [[ -e ${PN}-${version}.ebuild ]] && echo =3D${CATEGORY}/${PN= }-${version} + else + echo ${CATEGORY}/${PN} + fi + ;; esac =20 =20 cd - > /dev/null - eoutdent + [[ ${mode} !=3D "list" ]] && eoutdent done