summaryrefslogtreecommitdiff
path: root/TOOLS
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/build.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/TOOLS/build.sh b/TOOLS/build.sh
new file mode 100755
index 0000000..da97d88
--- /dev/null
+++ b/TOOLS/build.sh
@@ -0,0 +1,10 @@
+#/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}" $@