summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2020-07-15 04:56:02 +0300
committerAndreas K. Hüttel <dilfridge@gentoo.org>2020-07-15 04:56:02 +0300
commit3018f745b83ee4b6e11b0f6554a9472fe4517091 (patch)
tree779487b642798c4276b9dabe4ba65a72855ed327
parentDrop useless old cvs version information (diff)
downloadlocale-gen-3018f745b83ee4b6e11b0f6554a9472fe4517091.tar.gz
locale-gen-3018f745b83ee4b6e11b0f6554a9472fe4517091.tar.bz2
locale-gen-3018f745b83ee4b6e11b0f6554a9472fe4517091.zip
Remove incomplete, nonfunctional ROOT support
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rwxr-xr-xlocale-gen17
1 files changed, 7 insertions, 10 deletions
diff --git a/locale-gen b/locale-gen
index b330851..140654a 100755
--- a/locale-gen
+++ b/locale-gen
@@ -115,26 +115,23 @@ fi
: ${ROOT:=/}
ROOT="${ROOT%/}/"
-if [[ -n ${DESTDIR} ]] && [[ ${ROOT} != "/" ]] ; then
- eerror "DESTDIR and ROOT are mutually exclusive options"
- exit 1
+
+if [[ ${ROOT} != "/" ]] ; then
+ eerror "Sorry, but ROOT is not supported."
+ exit 0
fi
-: ${EROOT:="${ROOT%/}${EPREFIX}/"}
+
+: ${EROOT:="${EPREFIX}/"}
if [[ ${EROOT} != "/" ]] ; then
einfo "Using locale.gen from ROOT ${EROOT}etc/"
fi
+
if [[ -n ${DESTDIR} ]] ; then
einfo "Building locales in DESTDIR '${DESTDIR}'"
else
DESTDIR=${EROOT}
fi
-# XXX: should fix this ...
-if [[ ${ROOT} != "/" ]] ; then
- eerror "Sorry, but ROOT support is incomplete at this time."
- exit 0
-fi
-
: ${CONFIG:=${EROOT}etc/locale.gen}
LOCALES=${DESTDIR}usr/share/i18n/locales
CHARMAPS=${DESTDIR}usr/share/i18n/charmaps