summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier>2011-09-15 17:31:00 +0000
committervapier <vapier>2011-09-15 17:31:00 +0000
commit9ee32c87862a872418352f744f0cd43f824f8512 (patch)
treedd3090c8f8939d60f3295437c94602ab3b016f95
parentclarify implicit --keep/--update when using --generate (diff)
downloadlocale-gen-9ee32c87862a872418352f744f0cd43f824f8512.tar.gz
locale-gen-9ee32c87862a872418352f744f0cd43f824f8512.tar.bz2
locale-gen-9ee32c87862a872418352f744f0cd43f824f8512.zip
use simpler default variable initialization
-rwxr-xr-xlocale-gen8
1 files changed, 4 insertions, 4 deletions
diff --git a/locale-gen b/locale-gen
index ba75cdb..97f9c36 100755
--- a/locale-gen
+++ b/locale-gen
@@ -45,7 +45,7 @@ show_usage() {
}
show_version() {
local b="(" a=")"
- local cvsver="$Revision: 1.28 $b $Date: 2011/08/17 21:41:09 $a"
+ local cvsver="$Revision: 1.29 $b $Date: 2011/09/15 17:31:00 $a"
echo "locale-gen-${cvsver//: }"
exit 0
}
@@ -88,10 +88,10 @@ while [[ -n $1 ]] ; do
done
[[ ${JOBS_MAX} -lt 1 ]] && JOBS_MAX=1
[[ -n ${SET_X} ]] && set -x
-KEEP=${KEEP:-${JUST_LIST}}
+: ${KEEP:=${JUST_LIST}}
[[ -n ${GENERATE} ]] && UPDATE="true" && KEEP="true"
-ROOT=${ROOT:-/}
+: ${ROOT:=/}
[[ ${ROOT} != */ ]] && ROOT="${ROOT}/"
if [[ -n ${DESTDIR} ]] && [[ ${ROOT} != "/" ]] ; then
eerror "DESTDIR and ROOT are mutually exclusive options"
@@ -112,7 +112,7 @@ if [[ ${ROOT} != "/" ]] ; then
exit 0
fi
-CONFIG=${CONFIG:-${ROOT}etc/locale.gen}
+: ${CONFIG:=${ROOT}etc/locale.gen}
LOCALES=${DESTDIR}usr/share/i18n/locales
CHARMAPS=${DESTDIR}usr/share/i18n/charmaps
SUPPORTED=${DESTDIR}usr/share/i18n/SUPPORTED