summaryrefslogtreecommitdiff
path: root/TOOLS/build.sh
blob: d15c27883a153b0d58df44178f98dd74a7f19385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#/bin/env bash

set -eux

# make sure we check our own directories
TOPDIR="$(realpath "$(dirname "${BASH_SOURCE[0]}")/..")"
SOURCEDIR="${TOPDIR}/SOURCES"
SPECDIR="${TOPDIR}/SPECS"

rpmbuild \
    --define "_sourcedir ${SOURCEDIR}" \
    --define "_specdir ${SPECDIR}" \
    $@