summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdev/mogen4
1 files 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
}