From af23e92e4b14e53aa55a8ec3fe2a83f06ea748c3 Mon Sep 17 00:00:00 2001 From: xtex Date: Sun, 13 Oct 2024 15:52:15 +0800 Subject: [PATCH] commitpacs: add BUMPREL option --- commitpacs/commitpacs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/commitpacs/commitpacs b/commitpacs/commitpacs index 473a389..98f3426 100755 --- a/commitpacs/commitpacs +++ b/commitpacs/commitpacs @@ -41,6 +41,12 @@ commitPkg() { pkgDir="$(getPkgDir "$pkg")" pkgVer="$(getPkgVer "$pkgDir")" + if [[ "${BUMPREL:-}" == 1 ]]; then + log "[$pkg] Bumping REL ..." + "$(dirname "$(dirname "$(realpath "$(command -v "$0")")")")/bump-rel/bump-rel" \ + "$pkgDir/spec" + fi + local message message="$pkg: ${commitTemplate//\$VER/${pkgVer}}" @@ -63,6 +69,9 @@ Usage: $0 [PACKAGES]... Commit many packages with a message. When packages is not set, all changed packages are committed. + +Possible environment variables: + BUMPREL: Set to 1 to bump REL before committing EOF exit fi