Newer
Older
echo -n "Replacing version in source files to $1... "
sed -i "s/^\(\s*\)\(VERSION\|version\|release\|__version__\)\( *\)=\( *\)\([\"']\?\)[0-9]\+\.[0-9a-z]\+\(\.[0-9a-z]\+\)\?\([\"']\?\)\(,\?\)$/\1\2\3=\4\5$1\7\8/g" $(git ls-files -x contrib | grep -v "\.svg$")
echo "Syntax: $0 VERSION"
exit 1
fi
VERSION=$1
echo "Generating ChangeLog..."
tools/release.py prepare $VERSION > ChangeLog
cat ChangeLog.old >> ChangeLog
rm -f ChangeLog.old
vi +2 ChangeLog
set_version $VERSION
# in case there are new manpages not included in the git tree.
git add man/*
echo -ne "\nDo you want to change the version number (y/n) "
read change_version
if [ "$change_version" = "y" ]; then
echo -n "Enter the new version number: "
read NEW_VERSION
set_version $NEW_VERSION
git commit -a -m "bump to $NEW_VERSION"
fi