diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-07-15 04:56:02 +0300 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-07-15 04:56:02 +0300 |
commit | 3018f745b83ee4b6e11b0f6554a9472fe4517091 (patch) | |
tree | 779487b642798c4276b9dabe4ba65a72855ed327 | |
parent | Drop useless old cvs version information (diff) | |
download | locale-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-x | locale-gen | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -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 |