Bootstrappable Builds

This commit is contained in:
tobtoht 2023-07-02 21:00:24 +02:00
parent cc73fe7116
commit b2ff7641a5
No known key found for this signature in database
GPG key ID: E45B10DD027D2472
46 changed files with 3286 additions and 1565 deletions

View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
git_root() {
git rev-parse --show-toplevel 2> /dev/null
}
git_head_version() {
local recent_tag
if recent_tag="$(git describe --exact-match HEAD 2> /dev/null)"; then
echo "${recent_tag}"
else
git rev-parse --short=12 HEAD
fi
}