Add friendicaci/transifex image #1
10
transifex/Dockerfile
Normal file
10
transifex/Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
||||||
Code standards: Please add an EOF EOL. Code standards: Please add an EOF EOL.
|
|||||||
|
FROM ubuntu:20.04
|
||||||
Code standards: Please add an EOF EOL. Code standards: Please add an EOF EOL.
|
|||||||
|
|
||||||
Code standards: Please add an EOF EOL. Code standards: Please add an EOF EOL.
|
|||||||
|
RUN apt-get update -q && \
|
||||||
Code standards: Please add an EOF EOL. Code standards: Please add an EOF EOL.
|
|||||||
|
DEBIAN_FRONTEND=noninteractive apt-get install -q -y \
|
||||||
Code standards: Please add an EOF EOL. Code standards: Please add an EOF EOL.
|
|||||||
|
gettext \
|
||||||
Code standards: Please add an EOF EOL. Code standards: Please add an EOF EOL.
|
|||||||
|
git \
|
||||||
Code standards: Please add an EOF EOL. Code standards: Please add an EOF EOL.
|
|||||||
|
&& apt-get clean \
|
||||||
Code standards: Please add an EOF EOL. Code standards: Please add an EOF EOL.
|
|||||||
|
&& rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
|
||||||
Code standards: Please add an EOF EOL. Code standards: Please add an EOF EOL.
|
|||||||
|
|
||||||
Code standards: Please add an EOF EOL. Code standards: Please add an EOF EOL.
|
|||||||
|
COPY check-messages.sh /check-messages.sh
|
||||||
Code standards: Please add an EOF EOL. Code standards: Please add an EOF EOL.
|
13
transifex/check-messages.sh
Executable file
13
transifex/check-messages.sh
Executable file
|
@ -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…
Reference in a new issue
Code standards: Please add an EOF EOL.