Add script to bootstrap new version

This commit is contained in:
Davide De Rosa 2021-09-29 15:09:15 +02:00
parent 6815d691eb
commit 43d11e20cc
1 changed files with 15 additions and 0 deletions

15
scripts/bootstrap-version.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
VERSION=$1
if [[ -z $VERSION ]]; then
echo "Version number required"
exit 1
fi
CHANGELOG_GLOB="Passepartout/App/*/CHANGELOG.md"
ci/set-version.sh $VERSION
sed -i '' -E "s/(^and this project adheres.*$)/\1\n\n## Unreleased/" $CHANGELOG_GLOB
git add *.plist $CHANGELOG_GLOB
git commit -m "Bump version"