mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00

[#1594] enable debug messages with "--with-debug" only [#1595] call back with call history should use the same account as the past call [#1596] crashes when typing enter in history or address book and no item selected [#1597] beautiful dialpad with letters [#1598] call history should display calls in anti-chronologic order +set update-alternatives + corrected strings in french in ui files
44 lines
957 B
Bash
Executable File
44 lines
957 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function autocmd()
|
|
{
|
|
echo "Running ${1}..."
|
|
$* || {
|
|
echo "Error running ${1}"
|
|
exit 1
|
|
}
|
|
}
|
|
|
|
if [ ! -d "build" ]; then
|
|
mkdir build
|
|
fi
|
|
|
|
cd build
|
|
|
|
# prefix=`echo $@ | grep -q "--prefix="`
|
|
#
|
|
# if $prefix
|
|
# then options=$@" -DCMAKE_INSTALL_PREFIX="$prefix_env
|
|
|
|
# debug=`echo $@ | grep -q "debug"`
|
|
|
|
options=`echo $@ | sed "s/--prefix=/-DCMAKE_INSTALL_PREFIX=/g" | sed "s/--with-debug//g"`
|
|
|
|
if `echo $@ | grep -q "\--with-debug"`
|
|
then echo "Enable debug messages"
|
|
options="$options -DCMAKE_BUILD_TYPE=Debug"
|
|
else echo "Disable debug messages"
|
|
options="$options -DCMAKE_BUILD_TYPE=Release"
|
|
fi
|
|
|
|
echo "Passing argument '$options' to cmake"
|
|
|
|
autocmd cmake $options ..
|
|
|
|
|
|
echo "**********************************************"
|
|
echo "Configuration done!"
|
|
echo "Run \`cd build' to go to the build directory."
|
|
echo "Then run \`make'to build the software."
|
|
echo "**********************************************"
|