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 1Rgy8s-000682-FJ for garchives@archives.gentoo.org; Sat, 31 Dec 2011 12:34:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5745D21C05F; Sat, 31 Dec 2011 12:34:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2A3E821C05F for ; Sat, 31 Dec 2011 12:34:23 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A2EB61B4027 for ; Sat, 31 Dec 2011 12:34:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id A608280043 for ; Sat, 31 Dec 2011 12:34:21 +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: <718b494f06e27105cfe787afcce3b69c1adc1e16.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: 718b494f06e27105cfe787afcce3b69c1adc1e16 Date: Sat, 31 Dec 2011 12:34:21 +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: f7cba42c-c854-4a01-b668-dc7275efe78b X-Archives-Hash: b4cebaeb834241aa0e71ba42272059ce commit: 718b494f06e27105cfe787afcce3b69c1adc1e16 Author: Maxim Koltsov gentoo org> AuthorDate: Sat Dec 31 10:54:28 2011 +0000 Commit: Maxim Koltsov gentoo org> CommitDate: Sat Dec 31 10:54:28 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/maksbotan.git;= a=3Dcommit;h=3D718b494f Update leechcraft script --- Documentation/leech_bump.sh | 38 ++++++++++++++++++++++++++++++++++++-= - 1 files changed, 36 insertions(+), 2 deletions(-) diff --git a/Documentation/leech_bump.sh b/Documentation/leech_bump.sh index 9b93253..f54422a 100755 --- a/Documentation/leech_bump.sh +++ b/Documentation/leech_bump.sh @@ -2,6 +2,20 @@ =20 . /etc/init.d/functions.sh =20 +#First argument is changelog arg, second is message arg, third is defaul= t message +changelog_helper() { + if [[ "x${1}" =3D=3D "x--changelog" ]]; then + local message + if [[ ${2} ]]; then + message=3D"${2}" + else + message=3D"${3}" + fi + einfo "Running echangelog" + echangelog ${message} + fi +} + if [[ ${#} -lt 2 && ${1} !=3D "repoman" ]]; then eerror "Not enough arguments" einfo "Usage: ${0} mode version|message" @@ -9,11 +23,13 @@ if [[ ${#} -lt 2 && ${1} !=3D "repoman" ]]; then einfo " - bump" einfo " - commit" einfo " - repoman" + einfo " - delete" + einfo " - changelog" exit 1 fi =20 case "${1}" in - bump|commit|repoman) ;; + bump|commit|repoman|delete|eapi|changelog) ;; *) eerror "Unknown mode ${1}" exit 1 @@ -74,7 +90,7 @@ for atom in */*; do eend $? =20 ebegin "Generating ChangeLog for ${atom}" - echangelog "Bump ${atom} to ${version}, thanks to 0xd34df00d" + changelog_helper --changelog "${4}" "Bump ${atom} to ${version},= thanks to 0xd34df00d" eend $? =20 ;; @@ -91,6 +107,24 @@ for atom in */*; do repoman fix =20 ;; + delete) + einfo "Deleting ${PN}-${version}" + =20 + rm ${PN}-${version}.ebuild + cvs rm ${PN}-${version}.ebuild + changelog_helper "${3}" "${4}" "Removed old ${PN}-${version}" + + ;; + eapi) + einfo "Changing EAPI to 4 in ${atom}-${version}" + + sed -i 's:EAPI=3D"2":EAPI=3D"4":' ${PN}-${version}.ebuild + changelog_helper "${3}" "${4}" "Bumped to EAPI=3D\"4\"" + + ;; + changelog) + einfo "Running echangelog in ${atom}" + echangelog ${version} esac =20 =20