release 2013.01.08
[youtube-dl] / devscripts / release.sh
index cf5784e8c91796376e8d5e12a8d76b18df8c0826..233b608423b5c0c303343b5dbc8d4b57bc53a0e2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # IMPORTANT: the following assumptions are made
 # * the GH repo is on the origin remote
@@ -50,7 +50,7 @@ wget "http://jeromelaheurte.net:8142/download/rg3/youtube-dl/youtube-dl.exe?rev=
 mkdir -p "update_staging/$version"
 mv youtube-dl youtube-dl.exe "update_staging/$version"
 mv youtube-dl.tar.gz "update_staging/$version/youtube-dl-$version.tar.gz"
-RELEASE_FILES=youtube-dl youtube-dl.exe youtube-dl-$version.tar.gz
+RELEASE_FILES="youtube-dl youtube-dl.exe youtube-dl-$version.tar.gz"
 (cd update_staging/$version/ && md5sum $RELEASE_FILES > MD5SUMS)
 (cd update_staging/$version/ && sha1sum $RELEASE_FILES > SHA1SUMS)
 (cd update_staging/$version/ && sha256sum $RELEASE_FILES > SHA2-256SUMS)
@@ -70,9 +70,7 @@ devscripts/gh-pages/add-version.py $version
 devscripts/gh-pages/sign-versions.py < updates_key.pem
 devscripts/gh-pages/generate-download.py
 devscripts/gh-pages/update-copyright.py
-rm -r test_coverage
-mv cover test_coverage
-git add *.html *.html.in update test_coverage
+git add *.html *.html.in update
 git commit -m "release $version"
 git show HEAD
 read -p "Is it good, can I push? (y/n) " -n 1