Commit 5c77c5d8 authored by Geoff Simmons's avatar Geoff Simmons

trackrdrd: re-create the RPM build subdirs before building

parent 38d962de
......@@ -32,6 +32,13 @@ make
make check
[[ $? -ne 0 ]] && exit 1
for DIR in BUILD BUILDROOT RPMS SOURCES SRPMS
do
RPMDIR=$WORKSPACE/trackrdrd/rpmbuild/$DIR
[[ -d $RPMDIR ]] && rm -rf $RPMDIR
mkdir -p $RPMDIR
done
VERSION=$(grep ' VERSION ' $WORKSPACE/trackrdrd/config.h | sed 's/^.*"\([^"]*\)".*$/\1/')
REVISION=$(git show -s --pretty=format:%h)
BUILDPATH=$WORKSPACE/trackrdrd/rpmbuild/BUILDROOT/trackrdrd-$VERSION-rev${REVISION}_build$BUILD_NUMBER.$(uname -m)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment