mirror of https://github.com/rkd77/elinks.git
[meson] check-po target
Usage: ninja check-po 2>&1 | less
This commit is contained in:
parent
2dc85a2060
commit
1140727fae
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
SRC=$(dirname -- ${BASH_SOURCE[0]})
|
||||
|
||||
for po in "$SRC"/*.po
|
||||
do
|
||||
lang=$(basename $po .po)
|
||||
echo -n "$lang"
|
||||
msgfmt --check --check-accelerators="~" --verbose --statistics -o /dev/null "$SRC/$lang.po"
|
||||
perl -I"$SRC/perl" "$SRC/perl/msgaccel-check" "$SRC/$lang.po"
|
||||
done
|
|
@ -6,3 +6,6 @@ if conf_data.get('CONFIG_NLS')
|
|||
args: '--directory=' + meson.source_root()
|
||||
)
|
||||
endif
|
||||
|
||||
check_po_sh = find_program('check_po.sh')
|
||||
run_target('check-po', command:[check_po_sh])
|
||||
|
|
Loading…
Reference in New Issue