diff options
author | Alexey Neyman <stilor@att.net> | 2020-03-17 19:48:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 19:48:37 (GMT) |
commit | 220c3dffc6cef926daa4733ab423cb230c1deba2 (patch) | |
tree | 2edfbeacf46860a3893426740468211c195e9449 | |
parent | b1971089f1c249b577ff370980a22f079acfc6ce (diff) | |
parent | 682f9aac7ba9e98c88c39738401f6371d074157c (diff) |
Merge pull request #1317 from stilor/master
Make rpmbuild happy with our unreleased versions
-rwxr-xr-x | maintainer/git-version-gen | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/maintainer/git-version-gen b/maintainer/git-version-gen index 4a6d331..0ca6bd3 100755 --- a/maintainer/git-version-gen +++ b/maintainer/git-version-gen @@ -215,6 +215,10 @@ if test "x$v_from_git" != x; then esac fi +# Replace any dashes with underscores in the resulting version, to keep +# rpmbuild happy. See https://github.com/semver/semver/issues/145. +v=`echo "$v" | sed 's/-/_/g'` + # Omit the trailing newline, so that m4_esyscmd can use the result directly. printf %s "$v" |