precommit-hook.sh: Automatically adjust version number after a release.

This commit is contained in:
Sebastian Lackner 2016-07-01 01:05:25 +02:00
parent 7df2eaa22d
commit 270b4f702b
3 changed files with 7 additions and 2 deletions

View File

@ -57,7 +57,7 @@ upstream_commit()
# Show version information
version()
{
echo "Wine Staging 1.9.13"
echo "Wine Staging 1.9.14 (unreleased)"
echo "Copyright (C) 2014-2016 the Wine Staging project authors."
echo ""
echo "Patchset to be applied on upstream Wine:"

View File

@ -18,6 +18,11 @@ if git status --porcelain "patches" | grep -v "^.\\?.*\\.py$" | grep "^.[^ ]" &>
exit 1
fi
if ! git status --porcelain "staging/VERSION" | grep "^M." &> /dev/null; then
perl -i -pe 's/(\d+)$/($1 + 1)." (unreleased)"/e' "staging/VERSION"
git add "staging/VERSION"
fi
git diff --cached --name-status | while read status file; do
if [[ "$file" =~ ^patches/ ]] || [[ "$file" =~ ^staging/ ]]; then
warning "UPDATING AUTOGENERATED FILES"

View File

@ -1 +1 @@
Wine Staging 1.9.13
Wine Staging 1.9.14 (unreleased)