summaryrefslogtreecommitdiff
path: root/do-a-release.sh
blob: 7817b4b86a38a03d8f54cb5c5a5caa613f081849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if [ x"$1" == x ] ; then
    echo "Version number not specified."
    exit 1
fi

sed -ie 's/version=".*",/version="'"$1"'",/' setup.py
sed -ie "s/__version__ = '.*'/__version__ = '$1'/" mkosi

git add -p setup.py mkosi

git commit -m "bump version numbers for v$1"

git tag -s "v$1" -m "mkosi $1"