mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
precommit-hook.sh: Automatically adjust version number after a release.
This commit is contained in:
parent
7df2eaa22d
commit
270b4f702b
@ -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:"
|
||||
|
@ -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"
|
||||
|
@ -1 +1 @@
|
||||
Wine Staging 1.9.13
|
||||
Wine Staging 1.9.14 (unreleased)
|
||||
|
Loading…
Reference in New Issue
Block a user