From 0df27229d8b798b280e3926e3bd7e6b49510623a Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Tue, 11 Apr 2006 15:26:27 +0000 Subject: [PATCH] Stefan Fiedler: also use special value "none" for ROCKCFG_LINGUAS variable, export LINGUAS environment variable, add help text [2006040419461330909] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@7510 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/sysfiles/sysfiles.conf | 6 ++++-- scripts/config.hlp | 9 +++++++++ scripts/parse-config | 2 ++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/package/base/sysfiles/sysfiles.conf b/package/base/sysfiles/sysfiles.conf index 97948ac95..a978f0ad8 100644 --- a/package/base/sysfiles/sysfiles.conf +++ b/package/base/sysfiles/sysfiles.conf @@ -137,9 +137,11 @@ EOT echo "Exporting LINGUAS environment variable ..." if [ "$ROCKCFG_LINGUAS" == "all" ] ; then - echo "# LINGUAS=" > $root/etc/profile.d/linguas + echo "# export LINGUAS=" > $root/etc/profile.d/linguas + elif [ "$ROCKCFG_LINGUAS" == "none" ] ; then + echo "export LINGUAS=" > $root/etc/profile.d/linguas else - echo "LINGUAS=\"$ROCKCFG_LINGUAS\"" > $root/etc/profile.d/linguas + echo "export LINGUAS=\"$ROCKCFG_LINGUAS\"" > $root/etc/profile.d/linguas fi if [ $stagelevel -gt 1 ] ; then diff --git a/scripts/config.hlp b/scripts/config.hlp index b495763d8..fa830d351 100644 --- a/scripts/config.hlp +++ b/scripts/config.hlp @@ -76,6 +76,15 @@ ROCKCFG_TARGET This target is intended to build a not blown up server distribution to install web-, mail-, fileserver or similar. +ROCKCFG_LINGUAS + Here you can choose the languages for which message translation + catalogs should be installed. + + Note that not all programs provide translations for each language. + + If set to 'all', all available translations will be installed, and + none if set to 'none'. + ROCKCFG_PARALLEL Select this option if you want to perform a parallel build on several machines or if you build on a multiprocessor machine. diff --git a/scripts/parse-config b/scripts/parse-config index eefd87829..0cf5423a3 100644 --- a/scripts/parse-config +++ b/scripts/parse-config @@ -97,6 +97,8 @@ export BUILDCXX="c++" BUILD_CXX="c++" HOSTCXX="c++" HOST_CXX="c++" if [ "$ROCKCFG_LINGUAS" == "all" ] ; then unset LINGUAS +elif [ "$ROCKCFG_LINGUAS" == "none" ] ; then + export LINGUAS= else export LINGUAS="$ROCKCFG_LINGUAS" fi