Skip to content

Commit 79b7cd4

Browse files
committed
Adapt Makefile bumpver target for x.y.z versioning
1 parent af06456 commit 79b7cd4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ po-push: potfile
136136
bumpver: po-push
137137
read -p "Please see the above message. Verify and push localization commit. Press anything to continue." -n 1 -r
138138

139-
@NEWSUBVER=$$((`echo $(VERSION) |cut -d . -f 2` + 1)) ; \
140-
NEWVERSION=`echo $(VERSION).$$NEWSUBVER |cut -d . -f 1,3` ; \
139+
# works for x.y.z versions
140+
@NEWSUBVER=$$((`echo $(VERSION) |cut -d . -f 3` + 1)) ; \
141+
NEWVERSION=`echo $(VERSION).$$NEWSUBVER |cut -d . -f 1,2,4` ; \
141142
sed -i "s/Version: $(VERSION)/Version: $$NEWVERSION/" $(SPECNAME).spec ; \
142143
sed -i "s/version='$(VERSION)'/version='$$NEWVERSION'/" setup.py
143144

0 commit comments

Comments
 (0)