From f5edbfc67effe160f9acbaa48bf794c14fc05f84 Mon Sep 17 00:00:00 2001 From: Maat Date: Fri, 2 Apr 2021 07:49:29 +0200 Subject: Improving dev/mogen display --- dev/mogen | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/mogen b/dev/mogen index 0b3568ad..1ee53fc9 100755 --- a/dev/mogen +++ b/dev/mogen @@ -13,6 +13,7 @@ REALPATH_BIN="/usr/bin/realpath" DIRNAME_BIN="/usr/bin/dirname" BASENAME_BIN="/usr/bin/basename" SLEEP_BIN="/usr/bin/sleep" +DATE_BIN='/usr/bin/date' MYDIR="$(${DIRNAME_BIN} $(${REALPATH_BIN} $0))" DEVDIR="$(${DIRNAME_BIN} $(${DIRNAME_BIN} $(${REALPATH_BIN} $0)))" @@ -30,13 +31,12 @@ function updateLang () { _lang="$(${BASENAME_BIN} $_langfile | ${SED_BIN} -e "s/\.po$//")" ${MKDIR_BIN} -p ${FULLDESTDIR}/${_lang}/LC_MESSAGES [ "x$1" == "x--watch" ] && [ $_update -eq 0 ] && echo "" - echo "updating ${DESTDIR}/${_lang}/LC_MESSAGES/urpmi.mo" + echo "$(${DATE_BIN} +%T) updating ${DESTDIR}/${_lang}/LC_MESSAGES/urpmi.mo" $MSGFMT_BIN "$DEVDIR/po/${_lang}.po" -o "${FULLDESTDIR}/${_lang}/LC_MESSAGES/urpmi.mo" _update=1 done [ $_update -eq 1 ] && ${TOUCH_BIN} "${FULLDESTDIR}/.timestamp" [ "x$1" != "x--watch" ] && exit - echo -n "." ${SLEEP_BIN} 2 done } -- cgit v1.2.1