fixed release attributes of rpms and archlinux

This commit is contained in:
Manuel Domke
2018-03-01 23:43:26 +01:00
parent 9ad7e532e5
commit b428787161
3 changed files with 15 additions and 2 deletions

View File

@@ -1,4 +1,12 @@
VERSION=`git --no-pager describe --tags --always`
#!/bin/bash
VERSION=`git --no-pager describe --tags --always | cut -d'-' -f1`
RELEASE=`git --no-pager describe --tags --always | cut -d'-' -f2`
if [ $VERSION == $RELEASE ]; then # this is a release
RELEASE=0
fi
ARCH=$2
PATH=$PATH:/sbin/
@@ -10,6 +18,7 @@ mkdir -p BUILD SPECS RPMS SRPMS
cp build-scripts/infnoise.spec SPECS
sed -i -- 's/__VERSION__/'$VERSION'/g' SPECS/infnoise.spec
sed -i -- 's/__RELEASE__/'$RELEASE'/g' SPECS/infnoise.spec
rpmbuild --define "_topdir `pwd`" -ba SPECS/infnoise.spec