openhantek/LinuxBuild
Martin 7a6e8d3bd4 doc update; remove bashism
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
2021-05-28 22:27:41 +02:00

17 lines
527 B
Bash

#!/bin/sh
# execute this script (as user) after cloning the project or pulling changes from github.com
if [ $(id -u) = 0 ]; then
echo "This script must not be executed as root"
fi
# prepare the build environment ..
# && build the binary ..
# && build packages (deb, rpm, tgz) ..
# && show the results
#
mkdir -p build && cd build && cmake .. \
&& make -j4 \
&& rm -f packages/* && fakeroot make -j4 package && cd .. \
&& echo && echo "Packages are available in build/packages:" && ls build/packages/openhantek*