summaryrefslogtreecommitdiff
path: root/src/treepkg
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-07-01 16:10:20 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-07-01 16:10:20 -0400
commit964d1abdb0e6d27df2e7041e7db20433f4fb3ce9 (patch)
tree1fecc3260d0c021ee1296c22c49a399bae87ad6f /src/treepkg
parentb40bba5da3f36143b3c6b1182221ca27c784ae9f (diff)
Make term_title gettext-aware (BREAKS COMPATIBILITY)
Diffstat (limited to 'src/treepkg')
-rwxr-xr-xsrc/treepkg8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/treepkg b/src/treepkg
index 9d3c0c3..f417010 100755
--- a/src/treepkg
+++ b/src/treepkg
@@ -27,11 +27,11 @@ check_vars libretools FULLBUILDCMD || exit 1
#check_vars libretools HOOKPREBUILD HOOKLOCALRELEASE || exit 1
load_files makepkg
-term_title "${0##*/}"
+term_title "%s" "${0##*/}"
# End inmediately but print an useful message
trap_exit() {
- term_title "${0##*/}: $(_ 'Error!')"
+ term_title "%s: Error!" "${0##*/}"
error "%s: %s (leftovers on %s" "${0##*/}" "$*" "${BUILDDIR}"
exit 1
}
@@ -204,7 +204,7 @@ if [[ ${DEPTH} -eq 0 ]]; then
${VERBOSE} && msg "Building %s" "${_pkg/_/ }" || true
# Remove leading zeros and space if any
- term_title "$(echo ${_pkg/_/ } | sed "s/^0\+ \?//")"
+ term_title "%s" "$(echo ${_pkg/_/ } | sed "s/^0\+ \?//")"
# Run build command
pushd "${BUILDDIR}/${_pkg}" >/dev/null
@@ -237,5 +237,5 @@ if [[ ${DEPTH} -eq 0 ]]; then
fi
-term_title "$(_ Done)"
+term_title "Done"
exit $?