the-libs/rpkg.macros
2022-02-14 00:05:46 +11:00

5 lines
175 B
Text

function git_calculate_version {
version_string="$(git describe --tags)"
version_string_substituted=${version_string//-/.}
echo ${version_string_substituted#*v}
}