passepartout-apple/scripts/start-new-version.sh
Davide De Rosa baac1f59a8 Bump version
2022-10-31 08:57:05 +01:00

13 lines
322 B
Bash
Executable File

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