[PATCH] Update authors section in manual pages

David Woodhouse dwmw2 at infradead.org
Sun Aug 7 19:19:43 EDT 2011

On Sun, 2011-08-07 at 23:56 +0100, Jonathan Wiltshire wrote:
> Note: the date in the footer of get_iplayer.1 doesn't change when
> the manual is generated. It should do, if the options change, but
> I can't think of a good way to detect this without just doing it
> maually. 

diff --git a/Makefile b/Makefile
index cdadc91..67bd34b 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,11 @@ tag:
 	@if git diff-index --name-only HEAD | grep ^ ; then \
 		echo Uncommitted changes in above files; exit 1; fi
 	sed 's/^\(my $$version = \).*/\1$(VERSION);/' -i get_iplayer
-	@./get_iplayer --manpage get_iplayer.1; git add get_iplayer.1
+	@./get_iplayer --manpage get_iplayer.1
+	git diff --exit-code get_iplayer.1 >/dev/null || \
+		sed 's/\(\.TH GET_IPLAYER "1" "\)[^"]*"/\1$(shell date +"%B %Y")\"/' -i get_iplayer get_iplayer.1;
 	@git log --format='%aN' |sort -u > CONTRIBUTORS; git add CONTRIBUTORS
 	@git commit -m "Tag version $(VERSION)" get_iplayer get_iplayer.1 CONTRIBUTORS
 	@git tag v$(VERSION)


More information about the get_iplayer mailing list