aboutsummaryrefslogtreecommitdiff
path: root/devscripts/release.sh
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2013-01-02 23:40:24 +0100
committerFilippo Valsorda <filippo.valsorda@gmail.com>2013-01-02 23:40:24 +0100
commit6e3dba168bd9662186f0071caf249e4d0c52beff (patch)
tree18ffe554e0f6f69fc64eba0e0edc3e7245d8c951 /devscripts/release.sh
parentd851e895d5bfb0bd43a341fc6172bf08fd5ecbb6 (diff)
downloadyoutube-dl-6e3dba168bd9662186f0071caf249e4d0c52beff.tar.xz
release.sh edits based on 2013.01.02 experience
Diffstat (limited to 'devscripts/release.sh')
-rwxr-xr-xdevscripts/release.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/devscripts/release.sh b/devscripts/release.sh
index 776f17646..0926c4038 100755
--- a/devscripts/release.sh
+++ b/devscripts/release.sh
@@ -1,13 +1,17 @@
#!/bin/sh
# IMPORTANT: the following assumptions are made
-# * you did --set-upstream
+# * the GH repo is on the origin remote
# * the gh-pages branch is named so locally
# * the git config user.signingkey is properly set
# You will need
# pip install coverage nose rsa
+# TODO
+# release notes
+# make hash on local files
+
set -e
if [ -z "$1" ]; then echo "ERROR: specify version number like this: $0 1994.09.06"; exit 1; fi
@@ -34,7 +38,9 @@ git show "$version"
read -p "Is it good, can I push? (y/n) " -n 1
if [[ ! $REPLY =~ ^[Yy]$ ]]; then exit 1; fi
echo
-git push
+MASTER=$(git rev-parse --abbrev-ref HEAD)
+git push origin $MASTER:master
+git push origin "$version"
echo "\n### OK, now it is time to build the binaries..."
REV=$(git rev-parse HEAD)
@@ -52,7 +58,6 @@ scp -r "update_staging/$version" ytdl@youtube-dl.org:html/downloads/
rm -r update_staging
echo "\n### Now switching to gh-pages..."
-MASTER=$(git rev-parse --abbrev-ref HEAD)
git checkout gh-pages
git checkout "$MASTER" -- devscripts/gh-pages/
git reset devscripts/gh-pages/
@@ -68,7 +73,8 @@ git show HEAD
read -p "Is it good, can I push? (y/n) " -n 1
if [[ ! $REPLY =~ ^[Yy]$ ]]; then exit 1; fi
echo
-git push
+git push origin gh-pages
echo "\n### DONE!"
+rm -r devscripts
git checkout $MASTER