Browse Source

Script for Issue #625 (#652)

tags/stw2018
Thomas Doczkal 7 months ago
parent
commit
0416e152d7
Signed by: max.mehl <max.mehl@fsfe.org> GPG Key ID: 2704E4AB371E2E92
1 changed files with 18 additions and 0 deletions
  1. 18
    0
      tools/find_news_without_en_translation.sh

+ 18
- 0
tools/find_news_without_en_translation.sh View File

@@ -0,0 +1,18 @@
1
+#/bin/bash
2
+ROOT=$(dirname "$(readlink -f "$0")")
3
+source "$ROOT"/config.cfg
4
+LOC_trunk=$(echo $LOC_trunk | sed 's|/$||')
5
+
6
+cd ${LOC_trunk}/news
7
+for f in $( grep -R front-page --files-with-matches 2*/*.{xhtml,xml} )
8
+do
9
+	base="${f%.*}"
10
+	base="${base%.*}"
11
+	sfx=${f##*.}
12
+	en="$base.en.$sfx"
13
+	if [[ ! -f "$en" ]]
14
+	then
15
+		echo "$f"
16
+	fi
17
+done
18
+

Loading…
Cancel
Save