Browse Source

Make bump-version commit the results.

Also add tag adding target.
mark_story 11 years ago
parent
commit
a8e931e286
1 changed files with 8 additions and 0 deletions
  1. 8 0
      Makefile

+ 8 - 0
Makefile

@@ -42,3 +42,11 @@ bump-version:
 	mv VERSION.txt VERSION.old
 	cat VERSION.old | sed s'/^[0-9]\.[0-9]\.[0-9].*/$(VERSION)/' > VERSION.txt
 	rm VERSION.old
+	git add VERSION.txt
+	git commit -m "Update version number to $(VERSION)"
+
+# Tag a release
+tag-release: bump-version
+	git tag -s $(VERSION) -m "CakePHP $(VERSION)"
+	git push origin
+	git push origin --tags