File: update-po.sh

package info (click to toggle)
iptux 0.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,724 kB
  • sloc: cpp: 28,220; xml: 75; sh: 48; makefile: 22
file content (14 lines) | stat: -rwxr-xr-x 306 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -e
cd "${MESON_SOURCE_ROOT}" || exit 1
git ls-files '*.cpp' '*.ui' '*.metainfo.xml' \
  | grep -v Test \
  | LC_ALL=C sort \
  > po/POTFILES
ninja -C "${MESON_BUILD_ROOT}" iptux-pot
ninja -C "${MESON_BUILD_ROOT}" iptux-update-po
for f in po/*.po; do
  echo -n "$f: "
  msgfmt -v "$f"
done