Debian does not like underscores in the version

This commit is contained in:
Thomas Roehl 2022-12-20 13:35:21 +01:00
parent 10df95e3f2
commit de2e522f52

View File

@ -113,7 +113,6 @@ DEB: scripts/cc-metric-collector.deb.control $(APP)
@VERS=$$(git describe --tags --abbrev=0 $${COMMITISH})
@if [ -z "$${VERS}" ]; then VERS=${GITHUB_REF_NAME}; fi
@VERS=$${VERS#v}
@VERS=$$(echo $${VERS} | sed -e s+'-'+'_'+g)
@ARCH=$$(uname -m)
@ARCH=$$(echo $${ARCH} | sed -e s+'_'+'-'+g)
@if [ "$${ARCH}" = "x86-64" ]; then ARCH=amd64; fi