Skip to content

Commit

Permalink
Match web pvr version with main script on release
Browse files Browse the repository at this point in the history
Since coming to infradead.org, the web pvr and get_iplayer main script
have been released together and have shared a single change log,
thus there is no reason for the web pvr to maintain a separate version
number.  Makefile has been modified to update web pvr version
number along with that of the main script.
  • Loading branch information
dinkypumpkin committed Jun 1, 2012
1 parent 476ce33 commit 7eb1056
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ 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
sed 's/^\(my $$VERSION = \).*/\1$(VERSION);/' -i get_iplayer.cgi
@./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
sed 's/\(The latest version is v\)[0-9]\{1,\}\.[0-9]\{1,\}/\1$(VERSION)/' -i html/get_iplayer.html
@git log --format='%aN' |sort -u > CONTRIBUTORS; git add CONTRIBUTORS
@git commit -m "Tag version $(VERSION)" get_iplayer get_iplayer.1 html/get_iplayer.html CONTRIBUTORS
@git commit -m "Tag version $(VERSION)" get_iplayer get_iplayer.1 html/get_iplayer.html CONTRIBUTORS get_iplayer.cgi
@git tag v$(VERSION)

tarball:
Expand Down

0 comments on commit 7eb1056

Please sign in to comment.