mirror of
https://github.com/monero-project/monero.git
synced 2025-05-22 22:41:13 -04:00
Bootstrappable Builds
This commit is contained in:
parent
cc73fe7116
commit
b2ff7641a5
46 changed files with 3286 additions and 1565 deletions
14
contrib/shell/git-utils.bash
Normal file
14
contrib/shell/git-utils.bash
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue