TISbackup/rpm/build.sh

13 lines
240 B
Bash
Executable File

#!/bin/sh
set -ex
rm -rf ./tis-tisbackup/ ./BUILD *.rpm ./RPMS
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 .