chiark / gitweb /
add some warnings
[elogind.git] / Makefile.am
index 8152af012da030575f60dabb4f626a65f211acb8..ae21bca16c3c329332d0864467a30ae762cfd22f 100644 (file)
@@ -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