Skip to content

Commit af23e92

Browse files
committed
commitpacs: add BUMPREL option
1 parent 2e64624 commit af23e92

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

commitpacs/commitpacs

+9
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ commitPkg() {
4141
pkgDir="$(getPkgDir "$pkg")"
4242
pkgVer="$(getPkgVer "$pkgDir")"
4343

44+
if [[ "${BUMPREL:-}" == 1 ]]; then
45+
log "[$pkg] Bumping REL ..."
46+
"$(dirname "$(dirname "$(realpath "$(command -v "$0")")")")/bump-rel/bump-rel" \
47+
"$pkgDir/spec"
48+
fi
49+
4450
local message
4551
message="$pkg: ${commitTemplate//\$VER/${pkgVer}}"
4652

@@ -63,6 +69,9 @@ Usage: $0 <MESSAGE> [PACKAGES]...
6369
6470
Commit many packages with a message.
6571
When packages is not set, all changed packages are committed.
72+
73+
Possible environment variables:
74+
BUMPREL: Set to 1 to bump REL before committing
6675
EOF
6776
exit
6877
fi

0 commit comments

Comments
 (0)