Skip to content

Commit 83c29e3

Browse files
author
Tim Lauridsen
committed
change the release Makefile target to the gitflow model
1 parent 19d524d commit 83c29e3

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Makefile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ BUMPED_MINOR=${shell VN=`cat ${APPNAME}.spec | grep Version| sed 's/${VER_REGEX
1515
NEW_VER=${shell cat ${APPNAME}.spec | grep Version| sed 's/\(^Version:\s*\)\([0-9]*\.[0-9]*\.\)\(.*\)/\2${BUMPED_MINOR}/'}
1616
NEW_REL=0.1.${GITDATE}
1717
DIST=${shell rpm --eval "%{dist}"}
18-
GIT_MASTER=master
18+
GIT_MASTER=develop
1919
CURDIR = ${shell pwd}
2020
BUILDDIR= $(CURDIR)/build
2121

@@ -132,16 +132,23 @@ archive:
132132
changelog:
133133
@git log --pretty --numstat --summary | tools/git2cl > ChangeLog
134134

135+
release-branch:
136+
@git branch -m ${GIT_MASTER} release-${VERSION}
135137

136-
release:
138+
release-publish:
139+
@git checkout release-${VERSION}
137140
@git commit -a -m "bumped version to $(VERSION)"
138141
@$(MAKE) changelog
139142
@git commit -a -m "updated ChangeLog"
140-
@git push
143+
@git checkout release-devel
144+
@git merge --no-ff release-${VERSION} -m "merge ${APPNAME}-${VERSION} release"
141145
@git tag -f -m "Added ${APPNAME}-${VERSION} release tag" ${APPNAME}-${VERSION}
142146
@git push --tags origin
143147
@$(MAKE) rpms
144148

149+
release-cleanup:
150+
@git branch -D release-${VERSION}
151+
145152
test-cleanup:
146153
@rm -rf ${APPNAME}-${VERSION}.test.tar.gz
147154
@echo "Cleanup the git release-test local branch"

0 commit comments

Comments
 (0)