diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-03-07 14:35:34 +0100 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-03-07 15:09:32 +0100 |
commit | a9ee42c0671983f6eea49d30babca49dbf3242ce (patch) | |
tree | 31524f5c327d23c55084fe57478b6b78d9c98dce /Makefile | |
parent | 4e438ae4561c7429a59bc17ad2b7086a62b03525 (diff) | |
download | firstaidkit-a9ee42c0671983f6eea49d30babca49dbf3242ce.tar.gz firstaidkit-a9ee42c0671983f6eea49d30babca49dbf3242ce.tar.xz firstaidkit-a9ee42c0671983f6eea49d30babca49dbf3242ce.zip |
Automate the addition of a minor version with the makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -32,3 +32,10 @@ rpm-all: tarball subdirs: for d in $(PLUGIN_DIRS); do make -C $(PLUGIN_PATH)/$$d build; [ $$? == 0 ] || exit 1; done + +bumpver: + @MAYORVER=$$(echo $(VERSION) | cut -d . -f 0-2); \ + NEWSUBVER=$$((`echo $(VERSION) | cut -d . -f 3`+1)); \ + sed -i "s/Version: $(VERSION)/Version: $$MAYORVER.$$NEWSUBVER/" firstaidkit.spec; \ + sed -i "s/Release: .*%/Release: 1%/" firstaidkit.spec; \ + sed -i "s/version=.*/version='$$MAYORVER.$$NEWSUBVER',/" setup.py; |