summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-03-07 14:35:34 +0100
committerJoel Andres Granados <jgranado@redhat.com>2008-03-07 15:09:32 +0100
commita9ee42c0671983f6eea49d30babca49dbf3242ce (patch)
tree31524f5c327d23c55084fe57478b6b78d9c98dce /Makefile
parent4e438ae4561c7429a59bc17ad2b7086a62b03525 (diff)
downloadfirstaidkit-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--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a89785a..d3cd52b 100644
--- a/Makefile
+++ b/Makefile
@@ -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;