Commit cd21cb1e23eab5e5d69a4ce862ff40873d28c255

Authored by Goutte
1 parent 5b6fac97
Exists in master

Add a script to bump the semantic versioning from git description.

Showing 2 changed files with 25 additions and 0 deletions   Show diff stats
VERSION 0 → 100644
... ... @@ -0,0 +1 @@
  1 +0.0.0
0 2 \ No newline at end of file
... ...
bin/bump.sh 0 → 100755
... ... @@ -0,0 +1,24 @@
  1 +#!/usr/bin/env bash
  2 +
  3 +# Fill the VERSION file with the new version, following semantic versioning.
  4 +# You MUST run this script from the project's root directory.
  5 +
  6 +# COLORS ######################################################################
  7 +
  8 +Off='\033[0m' # Text Reset
  9 +
  10 +# Regular Colors
  11 +Black='\033[0;30m' # Black
  12 +Red='\033[0;31m' # Red
  13 +Green='\033[0;32m' # Green
  14 +Yellow='\033[0;33m' # Yellow
  15 +Blue='\033[0;34m' # Blue
  16 +Purple='\033[0;35m' # Purple
  17 +Cyan='\033[0;36m' # Cyan
  18 +White='\033[0;37m' # White
  19 +
  20 +# BUSINESS ####################################################################
  21 +
  22 +VERSION=`git describe --tags`
  23 +echo -e "${Green}Setting new version : ${Yellow}${VERSION}${Off}"
  24 +echo ${VERSION} > VERSION
... ...