comparison packaging/getxt-gen-l10n-array.sh @ 821:6e300f749a6d

Ignore MSGID "$1", which is an artifact by the "fatal" function.
author Sascha Wilde <wilde@intevation.de>
date Fri, 18 Jul 2014 18:16:55 +0200
parents 3a9b0c75f5a6
children 069f5e5344f6
comparison
equal deleted inserted replaced
820:eef8e0ca82b9 821:6e300f749a6d
27 declare -A L10N 27 declare -A L10N
28 28
29 get_msgids() 29 get_msgids()
30 { 30 {
31 while read -r id ; do 31 while read -r id ; do
32 MSGIDS+=("$id") 32 if [ "$id" != '"$1"' ] ; then
33 MSGIDS+=("$id")
34 fi
33 done < <( sed -n 's/.*\(getxt\|fatal\) [^"]*\("[^"]*"\).*/\2/p' "$1" | sort | uniq ) 35 done < <( sed -n 's/.*\(getxt\|fatal\) [^"]*\("[^"]*"\).*/\2/p' "$1" | sort | uniq )
34 } 36 }
35 37
36 merge_l10n() 38 merge_l10n()
37 { 39 {

http://wald.intevation.org/projects/trustbridge/