fixed release attributes of rpms and archlinux
This commit is contained in:
		| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user