2017-03-29 18:01:35 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -ex
|
2017-03-29 19:02:06 +02:00
|
|
|
rm -rf ./builddir/ ./BUILD *.rpm ./RPMS
|
2017-03-29 18:01:35 +02:00
|
|
|
mkdir -p BUILD RPMS
|
|
|
|
|
|
|
|
VERSION=`git rev-list HEAD --count`
|
|
|
|
echo $VERSION > __VERSION__
|
|
|
|
|
|
|
|
rpmbuild -bb --buildroot $PWD/builddir -v --clean tis-tisbackup.spec
|
|
|
|
cp RPMS/*/*.rpm .
|
|
|
|
|