summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblueness <blueness>2014-12-28 18:45:18 +0000
committerblueness <blueness>2014-12-28 18:45:18 +0000
commit3987637cde3e657884758ac62db5166b4713e5e2 (patch)
treec5d215b19f7ff00a568120472d2a66d96f1d93f2 /locale-gen
parentlocale-gen: write out localedef error messages when in quiet mode (diff)
downloadlocale-gen-3987637cde3e657884758ac62db5166b4713e5e2.tar.gz
locale-gen-3987637cde3e657884758ac62db5166b4713e5e2.tar.bz2
locale-gen-3987637cde3e657884758ac62db5166b4713e5e2.zip
extra/locale/locale-gen: source /lib/gentoo/functions.sh, bug #478764
Diffstat (limited to 'locale-gen')
-rwxr-xr-xlocale-gen7
1 files changed, 4 insertions, 3 deletions
diff --git a/locale-gen b/locale-gen
index eddbf58..cae26e3 100755
--- a/locale-gen
+++ b/locale-gen
@@ -14,8 +14,9 @@ if [[ ${EPREFIX} == "@"GENTOO_PORTAGE_EPREFIX"@" ]] ; then
EPREFIX=""
fi
-source "${EPREFIX}"/etc/init.d/functions.sh || {
- echo "${argv0}: Could not source /etc/init.d/functions.sh!" 1>&2
+FUNCTIONS_SH="/lib/gentoo/functions.sh"
+source "${EPREFIX}"${FUNCTIONS_SH} || {
+ echo "${argv0}: Could not source ${FUNCTIONS_SH}!" 1>&2
exit 1
}
@@ -51,7 +52,7 @@ show_usage() {
}
show_version() {
local b="(" a=")"
- local cvsver="$Revision: 1.35 $b $Date: 2014/06/13 22:07:18 $a"
+ local cvsver="$Revision: 1.36 $b $Date: 2014/12/28 18:45:18 $a"
echo "locale-gen-${cvsver//: }"
exit 0
}