You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-04-13 14:42:51 -07:00
precommit-hook.sh: Automatically adjust version number after a release.
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user