mirror of
https://github.com/OpenHantek/OpenHantek6022.git
synced 2026-11-26 23:29:52 +00:00
17 lines
527 B
Bash
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*
|