aboutsummaryrefslogtreecommitdiff
path: root/TOOLS/build.sh
blob: 5e9a7746f5ca714e5bc20854b82fa074c827ce2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#/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}" \
    $@