diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2020-02-04 16:58:54 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2020-02-04 16:58:54 (GMT) | 
| commit | 114c7f0f977ca7253cc179393b0cbd404d3f1bf5 (patch) | |
| tree | d541e63538a9b13e6841db55190cbeea0e9ca4e7 /tools/maint/init_potfiles.sh | |
| parent | e30bf54b0480823a90ba2f856776d4056d46759a (diff) | |
Updated copyright headers.
Diffstat (limited to 'tools/maint/init_potfiles.sh')
| -rwxr-xr-x | tools/maint/init_potfiles.sh | 26 | 
1 files changed, 26 insertions, 0 deletions
| diff --git a/tools/maint/init_potfiles.sh b/tools/maint/init_potfiles.sh new file mode 100755 index 0000000..e92c120 --- /dev/null +++ b/tools/maint/init_potfiles.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +function keep_i18n() { + +    while read file; +    do + +        if [ "$file" != "i18n.h" ]; then + +            grep -q '_(' $file + +            status=$? + +            if [ "$status" -eq 0 ]; then +                echo $file +            fi + +        fi + +    done + +} + +mkdir -p po + +find . -type f -name '*.[ch]' | keep_i18n | sort >  po/POTFILES.in | 
