From 0eb51593d77b52704547f7287f793555b8294378 Mon Sep 17 00:00:00 2001 From: Goutte Date: Tue, 5 Jun 2018 11:49:15 +0200 Subject: [PATCH] Add a version bumper script, for convenience. --- bin/bump | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+), 0 deletions(-) create mode 100755 bin/bump diff --git a/bin/bump b/bin/bump new file mode 100755 index 0000000..375a220 --- /dev/null +++ b/bin/bump @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +# Fill the VERSION file with the new version, following semver + +# COLORS ###################################################################### + +Off='\033[0m' # Text Reset + +# Regular Colors +Black='\033[0;30m' # Black +Red='\033[0;31m' # Red +Green='\033[0;32m' # Green +Yellow='\033[0;33m' # Yellow +Blue='\033[0;34m' # Blue +Purple='\033[0;35m' # Purple +Cyan='\033[0;36m' # Cyan +White='\033[0;37m' # White + +# BUSINESS #################################################################### + +VERSION=`git describe --tags` +echo -e "${Green}Setting new version : ${Yellow}${VERSION}${Off}" +echo ${VERSION} > VERSION -- libgit2 0.21.2