fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Daniel Rainerl10n: move `po/` to `localization/po/`9b75b6ee8

master
472 B19 linesraw
1#RUN: fish=%fish %fish %s
2#REQUIRES: command -v msgfmt
3
4set -l dir (status dirname)
5
6set -l fail_count 0
7for file in $dir/../../localization/po/*.po
8    # We only check the format strings.
9    # Later on we might do a full "--check" to also check the headers.
10    msgfmt --check-format $file
11    or set fail_count (math $fail_count + 1)
12end
13
14# Prevent setting timestamp if any errors were encountered
15if test "$fail_count" -gt 0
16    exit 1
17end
18
19# No output is good output