diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-08-08 21:19:16 -0500 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-08-08 21:19:16 -0500 |
commit | 620fd9dc5666f11b322a7088a220f408636a77e3 (patch) | |
tree | bd7584ef1c96017cfef8eebb71f38bc7afb51cc6 /generate-version.sh | |
parent | 662e06e68e9bc2c41c3cb90d36c4d9998ff1f958 (diff) |
use `git describe` to generate version
Diffstat (limited to 'generate-version.sh')
-rwxr-xr-x | generate-version.sh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/generate-version.sh b/generate-version.sh deleted file mode 100755 index cf408e1..0000000 --- a/generate-version.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -if git tag --contains HEAD | grep -q $1; then - echo $1 -else - branch="$(git rev-parse --abbrev-ref HEAD)" - commit="$(git rev-parse --short HEAD)" - if [ "${branch}" != "main" ]; then - echo $1-$branch-$commit - else - echo $1-$commit - fi -fi |