From c2a69ea9436640c93137e495f2d0501cfef5d412 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 18 Sep 2017 15:42:09 +0200 Subject: [PATCH] i18n: cleanup after txpull - remove extra .desktop files created in lang/ - remove annoyingly-doubled # Translations comment --- ci/txpull.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ci/txpull.sh b/ci/txpull.sh index 772ac0e32..53a0deaa4 100755 --- a/ci/txpull.sh +++ b/ci/txpull.sh @@ -43,6 +43,14 @@ BOILERPLATE="Automatic merge of Transifex translations" git add --verbose lang/calamares*.ts git commit "$AUTHOR" --message="[core] $BOILERPLATE" | true +rm -f lang/desktop*.desktop +awk ' + BEGIN {skip=0;} + /^# Translations/ {skip=1;} + {if (!skip || (length($0)>1 && $0 != "# Translations")) { + skip=0; print $0; + }}' < calamares.desktop > calamares.desktop.new +mv calamares.desktop.new calamares.desktop git add --verbose calamares.desktop git commit "$AUTHOR" --message="[desktop] $BOILERPLATE" | true