Merge pull request #1 from nupplaphil/transifex

Add friendicaci/transifex image
pull/2/head
Hypolite Petovan 2 years ago committed by GitHub
commit 414b2f3cbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,10 @@
FROM ubuntu:20.04
RUN apt-get update -q && \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y \
gettext \
git \
&& apt-get clean \
&& rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
COPY check-messages.sh /check-messages.sh

@ -0,0 +1,13 @@
#!/bin/bash
#
# Checks the default messages.po file
#
# Skip first 4 lines in possible diff, because they're header
# Skip all lines of the git diff starting with "@@" or comments or starting "POT-Creation-Date"
if [[ $(git diff -U0 ./view/lang/C/messages.po | grep -vE '^(@@|\-"POT-Creation-Date|\+"POT-Creation-Date|\-#|\+#)' | wc -l) -gt 4 ]]; then
echo "$(git diff ./view/lang/C/messages.po)"
exit 1
else
echo "Nothing to update"
fi
Loading…
Cancel
Save