TISbackup/rpm/build.sh
root 4af965930b fix symlink creation
added builddir cleanup
2017-03-29 19:02:06 +02:00

13 lines
235 B
Bash
Executable File

#!/bin/sh
set -ex
rm -rf ./builddir/ ./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 .