Merge pull request #4997 from PrzemoF/copr_fix_v39

[COPR] Restore dist in Release
This commit is contained in:
Yorik van Havre
2021-08-30 11:54:33 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@
Name: %{name}
Epoch: 1
Version: 0.19
Release: pre_{{{ git_commit_no }}}
Release: pre_{{{git_commit_no}}}%{?dist}
Summary: A general purpose 3D CAD modeler
Group: Applications/Engineering

View File

@@ -1,4 +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 $((commits + 1))
echo -n $((commits + 1))
}