From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 755A61382C5 for ; Mon, 22 Jun 2020 18:21:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA5D0E0960; Mon, 22 Jun 2020 18:21:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A305FE0960 for ; Mon, 22 Jun 2020 18:21:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6E41634F2B9 for ; Mon, 22 Jun 2020 18:21:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8D6172AF for ; Mon, 22 Jun 2020 18:21:16 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1592848890.a1ce579d0b4cc0921a25b0e0a84100a8f7c45b27.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: Documentation/maintainers/ X-VCS-Repository: proj/kde X-VCS-Files: Documentation/maintainers/bump-from-set.sh X-VCS-Directories: Documentation/maintainers/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: a1ce579d0b4cc0921a25b0e0a84100a8f7c45b27 X-VCS-Branch: master Date: Mon, 22 Jun 2020 18:21:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 894b4529-0a29-4a44-ad5f-43a192a5843a X-Archives-Hash: 6dac8e2f97f3802045797814b9618fb4 commit: a1ce579d0b4cc0921a25b0e0a84100a8f7c45b27 Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Jun 22 16:13:46 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Jun 22 18:01:30 2020 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=a1ce579d Documentation: bump-from-set.sh: Commit using pkgcommit Signed-off-by: Andreas Sturmlechner gentoo.org> Documentation/maintainers/bump-from-set.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/Documentation/maintainers/bump-from-set.sh b/Documentation/maintainers/bump-from-set.sh index ecc3b3bdc3..3ee29bdc4b 100755 --- a/Documentation/maintainers/bump-from-set.sh +++ b/Documentation/maintainers/bump-from-set.sh @@ -4,6 +4,9 @@ # app-portage/portage-utils # app-portage/gentoolkit-dev # app-portage/repoman +# Optional: +# dev-vcs/git +# app-portage/mgorny-dev-scripts : ${PORTDIR:="$(pwd)"} @@ -33,13 +36,14 @@ help() { echo Simple set-based version bumper. echo echo Given a set file, bumps all packages in the given set given source - echo and destination versions. Designed for workflows where ebuilds are - echo bumped from up-to-date live versions. + echo and destination versions. Optionally, if destination is a git repository, + echo each ebuild will be committed as \"cat/pn: DESTINATIONVERSION version bump\". + echo Designed for workflows where ebuilds are bumped from up-to-date live versions. echo echo Reads PORTDIR from your enviroment, defaulting to the current directory. echo echo Usage: bump-from-set.sh SETNAME SOURCEVERSION DESTINATIONVERSION - echo Example: bump-from-set.sh kde-plasma-5.7 5.7.49.9999 5.7.1 + echo Example: bump-from-set.sh kde-plasma-5.19 5.19.49.9999 5.19.2 exit 0 } @@ -79,3 +83,14 @@ for cp in ${packages} ; do popd > /dev/null done + +if [[ -d "${PORTDIR}/.git" ]] && hash git 2>/dev/null && hash pkgcommit 2>/dev/null; then + for cp in ${packages} ; do + pushd "${PORTDIR}/${cp}" > /dev/null + + git add . + pkgcommit -sS . -m "${DESTINATIONVERSION} version bump" + + popd > /dev/null + done +fi