X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile.am;h=31c0fca1836d566b2cc3ec8dfedaec03d2369a4e;hb=41b7a00922bdb1a501cbf2e39282fe64bb94cb6d;hp=ae21bca16c3c329332d0864467a30ae762cfd22f;hpb=58a63088871a0b51850351f0217d2f180a440b6c;p=elogind.git diff --git a/Makefile.am b/Makefile.am index ae21bca16..31c0fca18 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 @@ -45,6 +47,4 @@ git-release: 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 + git gc --prune