Skip to content

Commit fd38bc7

Browse files
committed
Updated Makefile
1 parent d6c2e92 commit fd38bc7

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Makefile

+5-8
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ release:
88
@if git diff-index --name-only HEAD | grep ^ ; then \
99
echo Uncommitted changes in above files; exit 1; fi
1010
@git checkout master
11-
@sed -i.bak -e 's/^\(my $$version = \).*/\1$(VERSION);/' -e 's/^\(my $$version_text\) = .*/\1;/' get_iplayer
12-
@sed -i.bak -e 's/^\(my $$VERSION = \).*/\1$(VERSION);/' -e 's/^\(my $$VERSION_TEXT\) = .*/\1;/' get_iplayer.cgi
11+
@sed -i.bak -e 's/^\(my $$version = \).*/\1$(VERSION);/' get_iplayer
12+
@sed -i.bak -e 's/^\(my $$VERSION = \).*/\1$(VERSION);/' get_iplayer.cgi
1313
@rm -f get_iplayer.bak get_iplayer.cgi.bak
1414
@./get_iplayer --nocopyright --manpage get_iplayer.1
1515
@git diff --exit-code get_iplayer.1 > /dev/null || \
@@ -18,13 +18,10 @@ release:
1818
@git log --format='%aN' | sort -u > CONTRIBUTORS; git add CONTRIBUTORS
1919
@git commit -m "Release $(VERSION)" get_iplayer get_iplayer.cgi get_iplayer.1 CONTRIBUTORS
2020
@git tag v$(VERSION)
21-
@git checkout contribute
22-
@git merge master
23-
@sed -i.bak -e 's/^\(my $$version_text\);/\1 = "$(next_ver)-dev";/' get_iplayer
24-
@sed -i.bak -e 's/^\(my $$VERSION_TEXT\);/\1 = "$(next_ver)-dev";/' get_iplayer.cgi
21+
@sed -i.bak -e 's/^\(my $$version = \).*/\1$(next_ver);/' get_iplayer
22+
@sed -i.bak -e 's/^\(my $$VERSION = \).*/\1$(next_ver);/' get_iplayer.cgi
2523
@rm -f get_iplayer.bak get_iplayer.cgi.bak
26-
@git commit -m "bump dev version" get_iplayer get_iplayer.cgi
27-
@git checkout master
24+
@git commit -m "bump version" get_iplayer get_iplayer.cgi
2825

2926
tarball:
3027
@git update-index --refresh --unmerged

0 commit comments

Comments
 (0)