From a9ee42c0671983f6eea49d30babca49dbf3242ce Mon Sep 17 00:00:00 2001 From: Joel Andres Granados Date: Fri, 7 Mar 2008 14:35:34 +0100 Subject: Automate the addition of a minor version with the makefile --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit