64c8ede727
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.
16 lines
413 B
Bash
Executable File
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\'
|