[PATCH] Generate manual page when tagging a release

Jonathan Wiltshire debian at jwiltshire.org.uk
Sat May 29 08:37:48 EDT 2010


---
 Makefile    |    3 ++-
 get_iplayer |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 3677ea7..5088899 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,8 @@ 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
-	@git commit -m "Tag version $(VERSION)" get_iplayer
+	@./get_iplayer --manpage get_iplayer.1; git add get_iplayer.1
+	@git commit -m "Tag version $(VERSION)" get_iplayer get_iplayer.1
 	@git tag v$(VERSION)
 
 tarball:
diff --git a/get_iplayer b/get_iplayer
index 7e1ce0f..682ff50 100755
--- a/get_iplayer
+++ b/get_iplayer
@@ -3161,7 +3161,7 @@ sub usage {
 		main::logger join "\n", @usage, "\n";
 	}
 
-	exit 1;
+	exit 0;
 }
 
 
-- 
1.7.1

-- 
Jonathan Wiltshire

4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC  74C3 5394 479D D352 4C51
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/get_iplayer/attachments/20100529/d63a64cc/attachment.sig>


More information about the get_iplayer mailing list