From 995ce7ba7a4b7baf3d3b886e22bd2a927e71d78e Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 5 Nov 2017 13:09:37 +0200 Subject: [PATCH] improve installation script concerning translation --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 --- install.sh | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/install.sh b/install.sh index d2b4b3045..46c7d21f5 100755 --- a/install.sh +++ b/install.sh @@ -13,26 +13,21 @@ 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 - if [ -a po ] ; then - sudo rm -fr po - fi - if [ -a locale ] ; then - sudo rm -fr locale - fi 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 - if [ -a po ] ; then - sudo rm -fr po - fi - if [ -a locale ] ; then - sudo rm -fr locale - fi 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 -DCMAKE_BUILD_TYPE=$build_type .. + cmake -DCMAKE_INSTALL_PREFIX=/usr -DKDE_L10N_AUTO_TRANSLATIONS=OFF -DCMAKE_BUILD_TYPE=$build_type .. make fi