diff options
author | jaseg <code@jaseg.net> | 2020-04-05 13:27:37 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2020-04-05 13:27:37 +0200 |
commit | 0013328ff2df09c63cd06fb82a50a63a7c76b763 (patch) | |
tree | f59510579dafbcee2445165d628889f5a7de9697 /do_release.sh | |
parent | 2c75f236230f3abe502688f76dd8995d4953ea9a (diff) | |
download | python-mpv-0013328ff2df09c63cd06fb82a50a63a7c76b763.tar.gz python-mpv-0013328ff2df09c63cd06fb82a50a63a7c76b763.tar.bz2 python-mpv-0013328ff2df09c63cd06fb82a50a63a7c76b763.zip |
Add release script
Diffstat (limited to 'do_release.sh')
-rwxr-xr-x | do_release.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/do_release.sh b/do_release.sh new file mode 100755 index 0000000..d5cdea4 --- /dev/null +++ b/do_release.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +[ $# -eq 1 ] || exit 2 + +VER="$1" +echo "Creating version $VER" + +if [ -n "$(git diff --name-only --cached)" ]; then + echo "Stash or commit staged changes first" + exit 2 +fi + +sed -i "s/^\\(\\s*version\\s*=\\s*['\"]\\)[^'\"]*\\(['\"]\\s*,\\s*\\)$/\\1"$VER"\\2/" setup.py +git add setup.py +git commit -m "Version $VER" --no-edit +env QUBES_GPG_DOMAIN=gpg git -c gpg.program=qubes-gpg-client -c user.signingkey=E36F75307F0A0EC2D145FF5CED7A208EEEC76F2D -c user.email=python-mpv@jaseg.de tag -s "v$VER" -m "Version $VER" +git push --tags origin |