mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-02 11:01:15 -03:00
This is only used in check-translations, where we can just use a relative path from the test script
20 lines
455 B
Fish
20 lines
455 B
Fish
#RUN: fish=%fish %fish %s
|
|
#REQUIRES: msgfmt --help
|
|
|
|
set -l dir (status dirname)
|
|
|
|
set -l fail_count 0
|
|
for file in $dir/../../po/*.po
|
|
# We only check the format strings.
|
|
# Later on we might do a full "--check" to also check the headers.
|
|
msgfmt --check-format $file
|
|
or set fail_count (math $fail_count + 1)
|
|
end
|
|
|
|
# Prevent setting timestamp if any errors were encountered
|
|
if test "$fail_count" -gt 0
|
|
exit 1
|
|
end
|
|
|
|
# No output is good output
|