diff options
Diffstat (limited to 'pocompile.sh')
-rwxr-xr-x | pocompile.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pocompile.sh b/pocompile.sh index 8eb9e31..67374b7 100755 --- a/pocompile.sh +++ b/pocompile.sh @@ -11,17 +11,22 @@ fi if [[ $# > 0 ]]; then langs="$@" -else - langs="$(ls *.po | sed 's/\.po//g')" +else + # in emerge case do not install anything if nothing is given + if [[ -z $eme ]]; then + langs="$(ls *.po | sed 's/\.po//g')" + else + langs="" + fi fi -for lang in $langs; do +for lang in ${langs}; do item=${lang}.po if [[ -f $item ]]; then echo "Creating translation file for ${lang}." - if [[ -n eme ]]; then + if [[ -n $eme ]]; then mkdir mo -p msgfmt ${item} -o mo/${lang}.mo else |