Page MenuHome

update_version.sh
No OneTemporary

File Metadata

Created
Sun, Sep 15, 10:17 AM

update_version.sh

#!/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\'

Event Timeline