/
niceSOFT
/
jq
Обзор
Документация
Войти
/
niceSOFT
/
jq
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
scripts/version
13 строк
313 B
Dag-Erling Smørgrav
Move closer to the standard autotools idiom. (#3187)
25 янв 2025, 11:10
Не верифицирован
25 янв 2025, 11:10
d8463c2
Код
Авторство
О чём код?
#!/bin/sh set -eu cd "$(dirname "$0")/../" test -e .git || exit 1 if git describe --tags --match 'jq-*' >/dev/null 2>&1; then git describe --tags --match 'jq-*' --dirty | sed 's/^jq-//' else branch=$(git rev-parse --abbrev-ref HEAD) commit=$(git describe --always --dirty) echo "${branch}-${commit}" fi