mirror of
https://github.com/Icinga/icinga2.git
synced 2026-04-29 10:09:23 -04:00
16 lines
597 B
Bash
Executable file
16 lines
597 B
Bash
Executable file
#!/bin/sh
|
|
cd $(dirname -- $0) || exit 1
|
|
|
|
cp icinga2/tools/debug/gdb/gdbinit /root/.gdbinit
|
|
sed -i 's/home\/gbeutner/root/' /root/.gdbinit
|
|
|
|
cd icinga2-build || exit 1
|
|
|
|
CCACHE_SLOPPINESS="include_file_mtime"
|
|
export CCACHE_SLOPPINESS
|
|
|
|
if [ ! -e CMakeCache.txt ]; then
|
|
CC="ccache clang" CXX="ccache clang++" cmake ../icinga2 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/opt/icinga2 -DCMAKE_INSTALL_SYSCONFDIR=/root/icinga2-config
|
|
fi
|
|
|
|
make -j 4 && make install && cgdb -ex set scheduler-locking step -ex r --args /opt/icinga2/sbin/icinga2 -c /root/icinga2-config/icinga2/icinga2.conf -DUseVfork=0
|