mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-23 01:33:50 +03:00
995ce7ba7a
--adjusting the installation script to use the kde translations and at the same time dont download them when the user doesnt want to install them
35 lines
910 B
Bash
Executable File
35 lines
910 B
Bash
Executable File
#!/bin/bash
|
|
#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
|
|
|
|
build_type=$1
|
|
build_type=${build_type:="Release"}
|
|
|
|
if ! [ -a build ] ; then
|
|
mkdir build
|
|
fi
|
|
|
|
cd build
|
|
|
|
if [ -a po ] ; then
|
|
sudo rm -fr po
|
|
fi
|
|
if [ -a locale ] ; then
|
|
sudo rm -fr locale
|
|
fi
|
|
|
|
if [ "$1" == "--translations" ] ; then
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DKDE_L10N_BRANCH=trunk -DKDE_L10N_AUTO_TRANSLATIONS=ON -DCMAKE_BUILD_TYPE=$build_type ..
|
|
make fetch-translations
|
|
elif [ "$1" == "--translations-stable" ] ; then
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DKDE_L10N_BRANCH=stable -DKDE_L10N_AUTO_TRANSLATIONS=ON -DCMAKE_BUILD_TYPE=$build_type ..
|
|
make fetch-translations
|
|
else
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DKDE_L10N_AUTO_TRANSLATIONS=OFF -DCMAKE_BUILD_TYPE=$build_type ..
|
|
make
|
|
fi
|
|
|
|
sudo make install
|