X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=Makefile.am;h=0963ce828e13ce19904d8ad72698c43ee2667ab7;hp=60f54ea9e4118488d09284691e61457ac3590e30;hb=5c0f595d91a21b1fba2b9edd89511a072036d0e8;hpb=e1b802a7dbcd88fc4965dbee9faf55c6bd3f5601 diff --git a/Makefile.am b/Makefile.am index 60f54ea9e..0963ce828 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,6 +12,8 @@ EXTRA_DIST = \ docs \ autogen.sh +PREVIOUS_VERSION = `expr $(VERSION) - 1` + distclean-local: rm -f *~ rm -rf autom4te.cache @@ -21,12 +23,12 @@ distclean-local: rm -f udev-$(VERSION).tar.gz udev-$(VERSION).tar.bz2 changelog: - @ head -1 ChangeLog | grep -q "to v$(shell echo $$(($(VERSION) - 1)))" + @ head -1 ChangeLog | grep -q "to v$(PREVIOUS_VERSION)" @ mv ChangeLog ChangeLog.tmp - @ echo "Summary of changes from v$(shell echo $$(($(VERSION) - 1))) to v$(VERSION)" >> ChangeLog + @ echo "Summary of changes from v$(PREVIOUS_VERSION) to v$(VERSION)" >> ChangeLog @ echo "============================================" >> ChangeLog @ echo >> ChangeLog - @ git log --pretty=short $(shell echo $$(($(VERSION) - 1)))..HEAD | git shortlog >> ChangeLog + @ git log --pretty=short $(PREVIOUS_VERSION)..HEAD | git shortlog >> ChangeLog @ echo >> ChangeLog @ cat ChangeLog @ cat ChangeLog.tmp >> ChangeLog @@ -40,3 +42,10 @@ test-install: make DESTDIR=$(PWD)/udev-test-install install tree $(PWD)/udev-test-install/ +git-release: + head -1 ChangeLog | grep -q "to v$(VERSION)" + head -1 NEWS | grep -q "udev $(VERSION)" + git commit -a -m "release $(VERSION)" + cat .git/refs/heads/master > .git/refs/tags/$(VERSION) + git gc + git prune