@ -7,6 +7,12 @@ set -e
build_type = $1
build_type = ${ build_type : = "Release" }
enable_make_unique = OFF
if [ " $1 " = = "--enable-make-unique" ] || [ " $2 " = = "--enable-make-unique" ] ; then
enable_make_unique = ON
fi
if ! [ -a build ] ; then
mkdir build
fi
@ -21,13 +27,13 @@ if [ -a locale ] ; then
fi
if [ " $1 " = = "--translations" ] ; then
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 -DENABLE_MAKE_UNIQUE= $enable_make_unique -D CMAKE_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 ..
cmake -DCMAKE_INSTALL_PREFIX= /usr -DKDE_L10N_BRANCH= stable -DKDE_L10N_AUTO_TRANSLATIONS= ON -DENABLE_MAKE_UNIQUE= $enable_make_unique -D CMAKE_BUILD_TYPE= $build_type ..
make fetch-translations
else
cmake -DCMAKE_INSTALL_PREFIX= /usr -DKDE_L10N_AUTO_TRANSLATIONS= OFF -DCMAKE_BUILD_TYPE= $build_type ..
cmake -DCMAKE_INSTALL_PREFIX= /usr -DKDE_L10N_AUTO_TRANSLATIONS= OFF -DENABLE_MAKE_UNIQUE= $enable_make_unique -D CMAKE_BUILD_TYPE= $build_type ..
make
fi