aboutsummaryrefslogtreecommitdiff
path: root/scripts/bump.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bump.sh')
-rwxr-xr-xscripts/bump.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/scripts/bump.sh b/scripts/bump.sh
deleted file mode 100755
index 86eed54..0000000
--- a/scripts/bump.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env bash
-
-function latest_version() {
- git tag | sort -V | tail -n 1
-}
-
-function overflow_bump() {
- IFS=".$IFS"
- read a b c
- if [[ "$b" == 999 ]]; then
- echo $((a + 1)).0.0
- elif [[ "$c" == 999 ]]; then
- echo $a.$((b + 1)).0
- else
- echo $a.$b.$((c + 1))
- fi
-}
-
-latest_version | overflow_bump
-
-echo "$1" | overflow_bump