mirror of https://github.com/Icinga/icinga2.git
parent
a601911059
commit
c9c024c362
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
cd `dirname -- $0` || exit 1
|
||||
rm -Rf .build
|
|
@ -6,8 +6,8 @@ fi
|
|||
|
||||
cd
|
||||
|
||||
cp icinga2/tools/debug/gdb/gdbinit ~/.gdbinit
|
||||
sed -i 's/home\/gbeutner/home\/icinga/' ~/.gdbinit
|
||||
cp icinga2/tools/debug/gdb/gdbinit .gdbinit
|
||||
sed -i 's/home\/gbeutner/home\/icinga/' .gdbinit
|
||||
|
||||
cd icinga2-build || exit 1
|
||||
|
||||
|
@ -15,7 +15,7 @@ CCACHE_SLOPPINESS="include_file_mtime"
|
|||
export CCACHE_SLOPPINESS
|
||||
|
||||
if [ ! -e Makefile ]; then
|
||||
CC="ccache clang" CXX="ccache clang++" cmake ../icinga2 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=~/icinga2-install -DCMAKE_INSTALL_SYSCONFDIR=~/icinga2-config
|
||||
CC="ccache clang" CXX="ccache clang++" cmake ../icinga2 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$HOME/icinga2-install -DCMAKE_INSTALL_SYSCONFDIR=$HOME/icinga2-config
|
||||
fi
|
||||
|
||||
make -j 4 && make install && cgdb -ex set scheduler-locking step -ex r --args ~/icinga2-install/sbin/icinga2 -c ~/icinga2-config/icinga2/icinga2.conf -DUseVfork=0
|
||||
make -j 4 && make install && cgdb -ex set scheduler-locking step -ex r --args ../icinga2-install/sbin/icinga2 -c ../icinga2-config/icinga2/icinga2.conf -DUseVfork=0
|
||||
|
|
Loading…
Reference in New Issue