1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-03 09:17:50 +03:00

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
This commit is contained in:
Michail Vourlakos 2017-11-05 13:09:37 +02:00
parent ad32fc1056
commit 995ce7ba7a

View File

@ -13,26 +13,21 @@ fi
cd build 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 [ "$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 .. cmake -DCMAKE_INSTALL_PREFIX=/usr -DKDE_L10N_BRANCH=trunk -DKDE_L10N_AUTO_TRANSLATIONS=ON -DCMAKE_BUILD_TYPE=$build_type ..
make fetch-translations make fetch-translations
elif [ "$1" == "--translations-stable" ] ; then 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 .. cmake -DCMAKE_INSTALL_PREFIX=/usr -DKDE_L10N_BRANCH=stable -DKDE_L10N_AUTO_TRANSLATIONS=ON -DCMAKE_BUILD_TYPE=$build_type ..
make fetch-translations make fetch-translations
else 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 make
fi fi