aboutsummaryrefslogtreecommitdiffhomepage
path: root/,version
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2025-10-09 13:11:45 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2025-10-09 13:11:45 -0400
commitbf8924ed8a17426554aef8d19a1bb2dfbc7bc285 (patch)
tree3eeedd435378f844adc08e462f1f63f472deea69 /,version
parenthouskeeping, (emacs org tangle updates), minor (diff)
,version (shellscript: project & git version info)HEADmain
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)"