Skip to content

Commit

Permalink
commitpacs: add BUMPREL option
Browse files Browse the repository at this point in the history
  • Loading branch information
xtexChooser committed Oct 13, 2024
1 parent 2e64624 commit af23e92
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions commitpacs/commitpacs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"

Expand All @@ -63,6 +69,9 @@ Usage: $0 <MESSAGE> [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
Expand Down

0 comments on commit af23e92

Please sign in to comment.