From 0af8ba215cba254dc4772f85379984a187581126 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sun, 7 Apr 2019 17:25:53 +0200 Subject: [PATCH] Automate beta commit --- ci/commit-beta-changelog.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 ci/commit-beta-changelog.sh diff --git a/ci/commit-beta-changelog.sh b/ci/commit-beta-changelog.sh new file mode 100755 index 00000000..b1bd2860 --- /dev/null +++ b/ci/commit-beta-changelog.sh @@ -0,0 +1,10 @@ +#!/bin/sh +VERSION=`ci/version-number.sh` +BUILD=$((`ci/build-number.sh` + 1)) +DATE=`date "+%Y-%m-%d"` +TARGET="CHANGELOG.md" + +sed "s/Unreleased/$VERSION Beta $BUILD ($DATE)/" $TARGET >$TARGET.tmp +mv $TARGET.tmp $TARGET +git add $TARGET +git commit -m "Set beta release"