Commit a7d176a7 authored by Markus Frosch's avatar Markus Frosch 📣

Add icinga-build-package

parent 04c01e8c
#!/bin/bash
# detecting files
FILES_SPEC="$(ls *.spec 2>/dev/null)"
FILES_DEBIAN="$(ls */debian 2>/dev/null)"
if [ -n "${FILES_SPEC}" ]; then
echo "Detected RPM source: ${FILES_SPEC}"
echo
#TODO
exit 1
elif [ -n "${FILES_DEBIAN}" ]; then
echo "Detected Debian source files: ${FILES_DEBIAN}"
echo
echo "[ running source build ]"
icinga-build-deb-source
if [ $? -ne 0 ]; then
echo "[ source build failed! ]"
exit 1
fi
echo "[ source build completed ]"
echo
echo "[ running binary build ]"
icinga-build-deb-binary
if [ $? -ne 0 ]; then
echo "[ binary build failed! ]"
exit 1
fi
echo "[ binary build completed ]"
echo
else
echo "Could not detect build type!" >&2
exit 1
fi
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