diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2025-10-09 13:11:45 -0400 | 
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2025-10-09 13:11:45 -0400 | 
| commit | bf8924ed8a17426554aef8d19a1bb2dfbc7bc285 (patch) | |
| tree | 3eeedd435378f844adc08e462f1f63f472deea69 /org | |
| parent | houskeeping, (emacs org tangle updates), minor (diff) | |
,version (shellscript: project & git version info)
Diffstat (limited to 'org')
| -rw-r--r-- | org/config_env.org | 13 | ||||
| -rw-r--r-- | org/config_git.org | 1 | 
2 files changed, 14 insertions, 0 deletions
| diff --git a/org/config_env.org b/org/config_env.org index 73a478a..84dc4eb 100644 --- a/org/config_env.org +++ b/org/config_env.org @@ -140,6 +140,19 @@ if [[ ! -d ./.git ]]; then  fi  #+END_SRC +** ,version (project & git version info) + +#+HEADER: :tangle ../,version +#+HEADER: :noweb yes +#+HEADER: :tangle-mode (identity #o755) +#+HEADER: :shebang #!/usr/bin/env sh +#+BEGIN_SRC shell +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)" +#+END_SRC +  ** .envrc-local CHECK MODIFY  - bespoke modify appropriately and generate if needed diff --git a/org/config_git.org b/org/config_git.org index fd0f037..771f7bc 100644 --- a/org/config_git.org +++ b/org/config_git.org @@ -45,6 +45,7 @@  !CHANGELOG  !makefile  !version.txt +!,version  !configuration.txt  !*.json  !*.sdl | 
