1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-08 13:18:09 +03:00
latte-dock/install.sh

35 lines
800 B
Bash
Raw Normal View History

#!/bin/bash
2016-12-31 00:30:34 +03:00
#Author: Michail Vourlakos, Smith Ar
#Summary: Installation script for Latte Dock Panel
#This script was written and tested on openSuSe Leap 42.1
set -e
2017-01-04 02:32:32 +03:00
build_type=$1
build_type=${build_type:="Release"}
if ! [ -a build ] ; then
mkdir build
fi
cd build
2017-01-04 02:32:32 +03:00
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=$build_type ..
if [ $1 == "-translations" ] ; then
make fetch-translations
else
make
fi
sudo make install
oldDeskFile="/usr/share/applications/latte-dock.desktop"
# TODO: remove this lines before 0.7 release, it is provided only for
# the users that use the master branch and built it themselves. It
# will help them to not have to different desktop files for Latte
if [ -f $oldDeskFile ] ; then
sudo rm $oldDeskFile
echo "Removed old desktop file..."
fi