1
0

Add install script

This commit is contained in:
MatMoul 2015-09-06 17:26:58 +02:00
parent 0306eae92e
commit 1439a91be5

53
src/install Normal file
View File

@ -0,0 +1,53 @@
#!/bin/bash
rm -R -f build
mkdir build
cd build
installlibdir=$(dirname $(dirname $(find /usr -name plasma_containmentactions_applauncher.so)))
cmake -DKDE_INSTALL_LIBDIR=$installlibdir ..
#cmake -DKDE_INSTALL_LIBDIR=/usr/lib/qt ..
if [ ! "$?" = "0" ]; then
echo ""
echo ""
echo "Error on cmake !"
echo "Stop install"
echo ""
echo "Have you installed cmake and extra-cmake-modules ?"
exit 1
fi
make
if [ ! "$?" = "0" ]; then
echo ""
echo ""
echo "Error on make !"
echo "Stop install"
exit 1
fi
sudo make install
if [ ! "$?" = "0" ]; then
echo ""
echo ""
echo "Error on make install !"
echo "Stop install"
exit 1
fi
cd ..
kbuildsycoca5
echo ""
echo ""
echo "Install Ready !"
echo ""
echo "If new menu is not available, logout your session."
read -p "Logout now ? (Y/n)" choice
case "$choice" in
y|Y|'' ) qdbus-qt4 org.kde.ksmserver /KSMServer logout -1 0 3;;
esac