aboutsummaryrefslogtreecommitdiffhomepage
path: root/,version
diff options
context:
space:
mode:
Diffstat (limited to ',version')
-rwxr-xr-x,version5
1 files changed, 5 insertions, 0 deletions
diff --git a/,version b/,version
new file mode 100755
index 0000000..34c0d8c
--- /dev/null
+++ b/,version
@@ -0,0 +1,5 @@
+#!/usr/bin/env sh
+SpineProjVer=`rg "Version\((\d+), (\d+), (\d+)\)" views/version.txt | sed -E 's/.*([0-9]+), ([0-9]+), ([0-9]+).*/spine-v\1.\2.\3/'` && \
+ SpineGitVer=`git describe | sed "s/^[a-z_-]\+\([0-9.]\+\)/\1/" | sed "s/\([^-]*-g\)/r\1/" | sed "s/-/./g"` && \
+ SpineGitBranch=`git branch --show-current` && \
+ echo "❯❯ $SpineProjVer - ($SpineGitBranch: $SpineGitVer)"