HEX
Server: LiteSpeed
System: Linux server44.twelveinks.com 5.14.0-570.12.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 13 06:11:55 EDT 2025 x86_64
User: moda (1338)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /python/moda/public_html/tech/old/vendor/phpmyadmin/sql-parser/tools/generate-mo
#!/bin/sh
if [ x$1 = x--quiet ] ; then
    stats=""
    shift
else
    stats="--statistics"
fi

compile() {
    if [ ! -z "$stats" ] ; then
        echo -n "$1: "
    fi
    msgfmt $stats --check -o ${1%.po}.mo $1
    return $?
}

if [ ! -z "$1" ] ; then
    compile po/$1.po
    exit $?
fi

result=0
for x in locale/*/LC_MESSAGES/sqlparser.po  ; do
    compile $x
    ret=$?
    if [ $ret != 0 ] ; then
        tput setf 4 >&2
        echo Error when compiling $x  >&2
        tput sgr0 >&2
        result=$ret
    fi
done

exit $result