summaryrefslogtreecommitdiff
path: root/src/chroot-tools/chcleanup.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-01-04 20:43:15 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-01-04 20:43:15 -0500
commita420c807d1b7ac3b5c5adbbb18ed99343ca5e6b6 (patch)
tree4f4ba7d5a069821aed21db0d422db8b9b0acc231 /src/chroot-tools/chcleanup.in
parentc000286dabf780061b46cfdadd2121869cd9e02a (diff)
oops, I'm dumb; fix chcleanupv20150104
Diffstat (limited to 'src/chroot-tools/chcleanup.in')
-rw-r--r--src/chroot-tools/chcleanup.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/chroot-tools/chcleanup.in b/src/chroot-tools/chcleanup.in
index d76989d..5351878 100644
--- a/src/chroot-tools/chcleanup.in
+++ b/src/chroot-tools/chcleanup.in
@@ -26,13 +26,21 @@
# leaves you with a cleansystem
#
# See: HOOKPREBUILD
-
+set -x
set -eE
DRYRUN=${DRYRUN:-false}
# Statically include various library routines to avoid having
# dependencies on outside files.
+[[ -n ${TEXTDOMAIN:-} ]] || export TEXTDOMAIN='libretools'
+[[ -n ${TEXTDOMAINDIR:-} ]] || export TEXTDOMAINDIR='/usr/share/locale'
+
+if type gettext &>/dev/null; then
+ _() { gettext "$@"; }
+else
+ _() { echo "$@"; }
+fi
# Begin chcleanup.lib ##########################################################
m4_include(chcleanup.lib)
# End chcleanup.lib ############################################################