Commit 0eb51593d77b52704547f7287f793555b8294378
1 parent
b2d825e2
Exists in
master
and in
2 other branches
Add a version bumper script, for convenience.
Showing
1 changed file
with
23 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,23 @@ | @@ -0,0 +1,23 @@ | ||
1 | +#!/usr/bin/env bash | ||
2 | + | ||
3 | +# Fill the VERSION file with the new version, following semver | ||
4 | + | ||
5 | +# COLORS ###################################################################### | ||
6 | + | ||
7 | +Off='\033[0m' # Text Reset | ||
8 | + | ||
9 | +# Regular Colors | ||
10 | +Black='\033[0;30m' # Black | ||
11 | +Red='\033[0;31m' # Red | ||
12 | +Green='\033[0;32m' # Green | ||
13 | +Yellow='\033[0;33m' # Yellow | ||
14 | +Blue='\033[0;34m' # Blue | ||
15 | +Purple='\033[0;35m' # Purple | ||
16 | +Cyan='\033[0;36m' # Cyan | ||
17 | +White='\033[0;37m' # White | ||
18 | + | ||
19 | +# BUSINESS #################################################################### | ||
20 | + | ||
21 | +VERSION=`git describe --tags` | ||
22 | +echo -e "${Green}Setting new version : ${Yellow}${VERSION}${Off}" | ||
23 | +echo ${VERSION} > VERSION |