Page MenuHome

update_version.sh
No OneTemporary

update_version.sh

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

File Metadata

Mime Type
text/x-shellscript
Expires
Wed, Mar 10, 4:35 PM (2 d)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
41/11/6cd7d6227b60e2af88f6c54771a2

Event Timeline