Merge pull request #1317 from stilor/master

Make rpmbuild happy with our unreleased versions
This commit is contained in:
Alexey Neyman 2020-03-17 12:48:37 -07:00 committed by GitHub
commit 220c3dffc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"