mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-03-09 08:58:17 +03:00
Adapt 'po file' syntax check to look at more files
The 'po file' check needs to consider various files in data/ as well as normal sources
This commit is contained in:
parent
87bb91e6af
commit
09a961ceba
4
maint.mk
4
maint.mk
@ -1072,6 +1072,8 @@ sc_po_check:
|
||||
*.m4|*.mk) continue ;; \
|
||||
*.?|*.??) ;; \
|
||||
*.xml) ;; \
|
||||
*.xml.in) ;; \
|
||||
*.desktop.in) ;; \
|
||||
*) continue;; \
|
||||
esac; \
|
||||
case $$file in \
|
||||
@ -1081,7 +1083,7 @@ sc_po_check:
|
||||
esac; \
|
||||
files="$$files $$file"; \
|
||||
done; \
|
||||
grep -E -l '(\b(N?_|gettext *)\([^)"]*("|$$))|(<interface>)' $$files \
|
||||
grep -E -l '(\b(N?_|gettext *)\([^)"]*("|$$))|(<interface>)|^_|<_' $$files \
|
||||
| sed 's|^$(_dot_escaped_srcdir)/||' | sort -u > $@-2; \
|
||||
diff -u -L $(po_file) -L $(po_file) $@-1 $@-2 \
|
||||
|| { printf '$(ME): '$(fix_po_file_diag) 1>&2; exit 1; }; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user