X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile.am;h=ae21bca16c3c329332d0864467a30ae762cfd22f;hb=58a63088871a0b51850351f0217d2f180a440b6c;hp=8152af012da030575f60dabb4f626a65f211acb8;hpb=01618658fd82dbc5e6315b639f00e87c6fee3c54;p=elogind.git diff --git a/Makefile.am b/Makefile.am index 8152af012..ae21bca16 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,16 +20,17 @@ distclean-local: rm -rf udev-test-install rm -f udev-$(VERSION).tar.gz udev-$(VERSION).tar.bz2 -ChangeLog: - @ mv $@ $@.tmp - @ echo "Summary of changes from v$(shell echo $$(($(VERSION) - 1))) to v$(VERSION)" >> $@ - @ echo "============================================" >> $@ - @ echo >> $@ - @ git log --pretty=short $(shell echo $$(($(VERSION) - 1)))..HEAD | git shortlog >> $@ - @ echo >> $@ - @ cat $@ - @ cat $@.tmp >> $@ - @ rm $@.tmp +changelog: + @ head -1 ChangeLog | grep -q "to v$(shell echo $$(($(VERSION) - 1)))" + @ mv ChangeLog ChangeLog.tmp + @ echo "Summary of changes from v$(shell echo $$(($(VERSION) - 1))) to v$(VERSION)" >> ChangeLog + @ echo "============================================" >> ChangeLog + @ echo >> ChangeLog + @ git log --pretty=short $(shell echo $$(($(VERSION) - 1)))..HEAD | git shortlog >> ChangeLog + @ echo >> ChangeLog + @ cat ChangeLog + @ cat ChangeLog.tmp >> ChangeLog + @ rm ChangeLog.tmp test-run: cd test && ./udev-test.pl @@ -39,3 +40,11 @@ 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 + git-update-server-info