diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-06-22 19:16:03 +0200 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-06-22 20:01:31 +0200 |
| commit | 6081e79e5b9df5bf8b0d2bdbe5305cbe05c7ba48 (patch) | |
| tree | b158b4d06b2137f235857560d7c9d22abd424cf0 | |
| parent | 4edc25c9282a9a6e264f1ffb3c9325d2cae20128 (diff) | |
| download | kde-6081e79e5b9df5bf8b0d2bdbe5305cbe05c7ba48.tar.gz kde-6081e79e5b9df5bf8b0d2bdbe5305cbe05c7ba48.tar.bz2 kde-6081e79e5b9df5bf8b0d2bdbe5305cbe05c7ba48.zip | |
Documentation: copy-to-main-tree.sh: Commit using pkgcommit
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
| -rwxr-xr-x | Documentation/maintainers/new/copy-to-main-tree.sh | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/Documentation/maintainers/new/copy-to-main-tree.sh b/Documentation/maintainers/new/copy-to-main-tree.sh index da57010723f..f4d7a87dad2 100755 --- a/Documentation/maintainers/new/copy-to-main-tree.sh +++ b/Documentation/maintainers/new/copy-to-main-tree.sh @@ -1,6 +1,10 @@ #!/bin/bash -# Requires app-portage/repoman +# Requires: +# app-portage/repoman +# Optional: +# dev-vcs/git +# app-portage/mgorny-dev-scripts . $(dirname "$0")/lib.sh @@ -11,12 +15,13 @@ help() { echo Simple set-based ebuild copier. echo echo Given a set in the source repository, copies all ebuilds with the specified - echo version into the target repository. + echo version into the target repository. Optionally, if target is a git repository, + echo each ebuild will be committed as \"cat/pn: TARGETVERSION version bump\" echo echo Reads TARGET_REPO from your enviroment, defaulting to the current directory. echo echo Usage: copy-to-main-tree.sh SETNAME TARGETVERSION - echo Example: copy-to-main-tree.sh kde-frameworks-5.15 5.15.0 + echo Example: copy-to-main-tree.sh kde-frameworks-5.72 5.72.0 exit 0 } @@ -56,3 +61,14 @@ for cp in ${packages} ; do popd > /dev/null done + +if [[ -d "${TARGET_REPO}/.git" ]] && hash git 2>/dev/null && hash pkgcommit 2>/dev/null; then + for cp in ${packages} ; do + pushd "${TARGET_REPO}/${cp}" > /dev/null + + git add . + pkgcommit -sS . -m "${TARGETVERSION} version bump" + + popd > /dev/null + done +fi |
