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-manager/update_version.sh
T
Sybren A. Stüvel 64c8ede727 Changed project file layout to be standard golang project layout
This means a bit more adjustment on the part of developers that aren't
familiar with how Go does things, but it makes it more consistent and
easier to work with when on multiple Go projects.
2017-10-03 12:01:06 +02:00

16 lines
413 B
Bash
Executable File

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