"Fossies" - the Fresh Open Source Software Archive

Member "sarg-2.4.0/sarg-php/update-mo.sh" (30 Jan 2017, 199 Bytes) of package /linux/privat/sarg-2.4.0.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    3 # quick and non portable hack to update the mo files from bash
    4 for f in locale/*/LC_MESSAGES/messages.po
    5 do
    6     echo "Updating $f"
    7     msgfmt --check --statistics -o "${f%.po}.mo" "$f" 
    8 done