ci/packaging: add missing rpkg.macros

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt
2022-01-31 20:38:19 +00:00
parent 4d395f85bb
commit 0eaea3a9aa

4
rpkg.macros Normal file
View File

@@ -0,0 +1,4 @@
function git_commit_no {
commits=$(curl -s 'https://api.github.com/repos/FreeCAD/FreeCAD/compare/120ca87015...master' | grep "ahead_by" | sed -s 's/ //g' | sed -s 's/"ahead_by"://' | sed -s 's/,//')
echo -n $((commits + 1))
}