From 43d11e20cc5a403305e2e516bc5e678eec1c6739 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Wed, 29 Sep 2021 15:09:15 +0200 Subject: [PATCH] Add script to bootstrap new version --- scripts/bootstrap-version.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/bootstrap-version.sh diff --git a/scripts/bootstrap-version.sh b/scripts/bootstrap-version.sh new file mode 100755 index 00000000..b5c710f5 --- /dev/null +++ b/scripts/bootstrap-version.sh @@ -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"