summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaat <maat-pub@mageia.biz>2021-04-02 07:49:29 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2021-11-04 20:11:11 +0100
commitf5edbfc67effe160f9acbaa48bf794c14fc05f84 (patch)
treeef88f65365c2c083b41b65406d28795f75169a90
parent63959f00105da7caac25e727ce1d622f45ddaa69 (diff)
downloadurpmi-f5edbfc67effe160f9acbaa48bf794c14fc05f84.tar
urpmi-f5edbfc67effe160f9acbaa48bf794c14fc05f84.tar.gz
urpmi-f5edbfc67effe160f9acbaa48bf794c14fc05f84.tar.bz2
urpmi-f5edbfc67effe160f9acbaa48bf794c14fc05f84.tar.xz
urpmi-f5edbfc67effe160f9acbaa48bf794c14fc05f84.zip
Improving dev/mogen display
-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
}