From ad32fc1056c483cc3cffe8dec27dae672be18a0b Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 5 Nov 2017 12:44:56 +0200 Subject: [PATCH] add option to install stable translations --fix the option to install trunk translations --- install.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index aa5d6f9af..d2b4b3045 100755 --- a/install.sh +++ b/install.sh @@ -13,7 +13,7 @@ fi cd build -if [ "$1" == "-translations" ] ; then +if [ "$1" == "--translations" ] ; then if [ -a po ] ; then sudo rm -fr po fi @@ -22,6 +22,15 @@ if [ "$1" == "-translations" ] ; then 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 .. make