Files @ c83f4a4d3aee
Branch filter:

Location: kallithea/scripts/whitespacecleanup.sh - annotation

Thomas De Schampheleire
i18n: el: fix syntax errors

Weblate reports:

msgmerge --no-wrap --backup=none --previous --update /home/www-data/weblate-hosted/vcs/kallithea/kallithea/kallithea/i18n/el/LC_MESSAGES/kallithea.po /home/www-data/weblate-hosted/vcs/kallithea/kallithea/kallithea/i18n/kallithea.pot

/home/www-data/weblate-hosted/vcs/kallithea/kallithea/kallithea/i18n/el/LC_MESSAGES/kallithea.po:1686: end-of-line within string
/home/www-data/weblate-hosted/vcs/kallithea/kallithea/kallithea/i18n/el/LC_MESSAGES/kallithea.po:1686: keyword "simple" unknown
/home/www-data/weblate-hosted/vcs/kallithea/kallithea/kallithea/i18n/el/LC_MESSAGES/kallithea.po:1686:10: syntax error
/home/www-data/weblate-hosted/vcs/kallithea/kallithea/kallithea/i18n/el/LC_MESSAGES/kallithea.po:1686: keyword "diff" unknown
/home/www-data/weblate-hosted/vcs/kallithea/kallithea/kallithea/i18n/el/LC_MESSAGES/kallithea.po:1687: end-of-line within string
msgmerge: found 5 fatal errors


Problem introduced in commit 880e2f07651b3eaf88d01e71ac7f3cbf88df163c
#!/bin/bash -x

# Enforce some consistency in whitespace - just to avoid spurious whitespaces changes

files=`hg mani | egrep -v '/fontello/|/email_templates/|(/lockfiles.py|^LICENSE-MERGELY.html|^docs/Makefile|^scripts/whitespacecleanup.sh|/(graph|mergely|native.history)\.js|/test_dump_html_mails.ref.html|\.png|\.gif|\.ico|\.pot|\.po|\.mo|\.tar\.gz|\.diff)$'`

sed -i "s/`printf '\r'`//g" $files
sed -i -e "s,`printf '\t'`,    ,g" $files
sed -i -e "s,  *$,,g" $files
sed -i -e 's,\([^ ]\)\\$,\1 \\,g' -e 's,\(["'"'"']["'"'"']["'"'"']\) \\$,\1\\,g' $files
# ensure one trailing newline - remove empty last line and make last line include trailing newline:
sed -i -e '$,${/^$/d}' -e '$a\' $files

sed -i -e 's,\([^ /]\){,\1 {,g' `hg loc '*.css'`
sed -i -e 's|^\([^ /].*,\)\([^ ]\)|\1 \2|g' `hg loc '*.css'`

hg mani | xargs chmod -x
hg loc 'set:!binary()&grep("^#!")&!(**_tmpl.py)&!(**/template**)' | xargs chmod +x

hg diff