Add RPKG macros

This commit is contained in:
Victor Tran 2022-02-14 00:05:46 +11:00
parent 4eadc57129
commit 8bdd903790

View file

@ -1,4 +1,5 @@
function git_calculate_version {
version_string="$(git describe --tags)"
echo ${version_string#*v}
version_string_substituted=${version_string//-/.}
echo ${version_string_substituted#*v}
}