This repository has been archived on 2023-02-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
flamenco-worker/update_version.sh
Sybren A. Stüvel 56d8407d34 Update update_version.sh for double quotes in Python
Update update_version.sh for double quotes in Python, as that's what
Black changes all quotes to.
2021-07-09 14:26:50 +02:00

17 lines
511 B
Bash
Executable File

#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 new-version" >&2
exit 1
fi
sed "s/version=\"[^\"]*\"/version=\"$1\"/" -i setup.py
sed "s/__version__\s*=\s*\"[^\"]*\"/__version__ = \"$1\"/" -i flamenco_worker/__init__.py
sed "s/FLAMENCO_VERSION=\"[^\"]*\"/FLAMENCO_VERSION=\"$1\"/" -i publish-online.sh
git diff
echo
echo "Don't forget to commit and tag:"
echo git commit -m \'Bumped version to $1\' setup.py flamenco_worker/__init__.py publish-online.sh
echo git tag -a v$1 -m \'Tagged version $1\'