2016-12-25 10:25:27 +03:00
#!/bin/bash
2016-12-31 00:30:34 +03:00
#Author: Michail Vourlakos, Smith Ar
#Summary: Installation script for Latte Dock Panel
2016-12-25 10:25:27 +03:00
#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" }
2017-11-06 19:59:21 +03:00
enable_make_unique = OFF
if [ " $1 " = = "--enable-make-unique" ] || [ " $2 " = = "--enable-make-unique" ] ; then
enable_make_unique = ON
fi
2016-12-25 10:25:27 +03:00
if ! [ -a build ] ; then
mkdir build
fi
cd build
2017-09-08 18:04:20 +03:00
2017-11-05 14:09:37 +03:00
if [ -a po ] ; then
sudo rm -fr po
fi
if [ -a locale ] ; then
sudo rm -fr locale
fi
2017-11-05 13:44:56 +03:00
if [ " $1 " = = "--translations" ] ; then
2017-11-06 19:59:21 +03:00
cmake -DCMAKE_INSTALL_PREFIX= /usr -DKDE_L10N_BRANCH= trunk -DKDE_L10N_AUTO_TRANSLATIONS= ON -DENABLE_MAKE_UNIQUE= $enable_make_unique -DCMAKE_BUILD_TYPE= $build_type ..
2017-09-08 18:04:20 +03:00
make fetch-translations
2017-11-05 13:44:56 +03:00
elif [ " $1 " = = "--translations-stable" ] ; then
2017-11-06 19:59:21 +03:00
cmake -DCMAKE_INSTALL_PREFIX= /usr -DKDE_L10N_BRANCH= stable -DKDE_L10N_AUTO_TRANSLATIONS= ON -DENABLE_MAKE_UNIQUE= $enable_make_unique -DCMAKE_BUILD_TYPE= $build_type ..
2017-11-05 13:44:56 +03:00
make fetch-translations
2017-09-08 18:04:20 +03:00
else
2017-11-06 19:59:21 +03:00
cmake -DCMAKE_INSTALL_PREFIX= /usr -DKDE_L10N_AUTO_TRANSLATIONS= OFF -DENABLE_MAKE_UNIQUE= $enable_make_unique -DCMAKE_BUILD_TYPE= $build_type ..
2017-09-08 18:04:20 +03:00
make
fi
2016-12-25 10:25:27 +03:00
sudo make install