public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Matthias Fischer <matthias.fischer@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 4/4] Cleaning the lang files: slighty tuned bash scripts
Date: Sun, 14 Jan 2018 20:41:59 +0100	[thread overview]
Message-ID: <20180114194159.2004-4-matthias.fischer@ipfire.org> (raw)
In-Reply-To: <20180114194159.2004-1-matthias.fischer@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 2001 bytes --]

Patch 4:
'update-lang-cache': now produces some output in console, fixed a double slash.
'check_langs.sh': considers all languages in logging, starts with 'de'.

Signed-off-by: Matthias Fischer <matthias.fischer(a)ipfire.org>
---
 src/scripts/update-lang-cache |  4 ++--
 tools/check_langs.sh          | 10 ++++------
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/scripts/update-lang-cache b/src/scripts/update-lang-cache
index 971664ee2..17485a5dc 100644
--- a/src/scripts/update-lang-cache
+++ b/src/scripts/update-lang-cache
@@ -1,3 +1,3 @@
 #!/bin/sh
-perl -e "require '//var/ipfire/lang.pl'; &Lang::BuildCacheLang"
-
+echo "Rebuilding language cache..."
+perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
diff --git a/tools/check_langs.sh b/tools/check_langs.sh
index 80d3f2e83..82873f9a6 100755
--- a/tools/check_langs.sh
+++ b/tools/check_langs.sh
@@ -25,21 +25,19 @@ if [ ! -d ./langs/ ]; then
 	exit 1
 fi
 
-cat ./langs/en/cgi-bin/en.pl | grep \'.*\' | awk -F\' '{print $2}'| sort > /tmp/en_cgi-bin.$$
+cat ./langs/de/cgi-bin/de.pl | grep \'.*\' | awk -F\' '{print $2}'| sort > /tmp/de_cgi-bin.$$
 
-for i in ./langs/*; do
-    [ -d "${i}" ] || continue
+for i in ./langs/en ./langs/fr ./langs/es ./langs/it ./langs/nl ./langs/pl ./langs/ru ./langs/tr; do
     language=`echo "$i" | awk -F/  '{ print $3 }'`
-    [ "${language}" = "en" ] && continue
 
     echo "############################################################################"
     echo "# Checking cgi-bin translations for language: ${language}                           #"
     echo "############################################################################"
     cat ./langs/${language}/cgi-bin/${language}.pl | grep \'.*\' | awk -F\' '{print $2}' | sort | \
-        diff /tmp/en_cgi-bin.$$ - | grep \<
+        diff /tmp/de_cgi-bin.$$ - | grep \<
 done
 
-rm -f /tmp/en_cgi-bin.$$
+rm -f /tmp/de_cgi-bin.$$
 
 exit 0
 
-- 
2.15.1


      parent reply	other threads:[~2018-01-14 19:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180114194159.2004-1-matthias.fischer@ipfire.org>
2018-01-14 19:41 ` [PATCH 2/4] Cleaning the lang files: customized GUI files Matthias Fischer
2018-01-14 19:41 ` [PATCH 3/4] Cleaning the lang files: the remaining 'languages_issues.*' Matthias Fischer
2018-01-14 19:41 ` Matthias Fischer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180114194159.2004-4-matthias.fischer@ipfire.org \
    --to=matthias.fischer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox