tazwok rev 37
Do not creat /usr/share/locale if no matching locale
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Feb 21 23:47:33 2008 +0100 (2008-02-21) |
parents | 0fc744d41898 |
children | 12fd058abc11 |
files | tazwok |
line diff
1.1 --- a/tazwok Thu Feb 14 19:25:53 2008 +0100 1.2 +++ b/tazwok Thu Feb 21 23:47:33 2008 +0100 1.3 @@ -293,11 +293,12 @@ 1.4 # using generic variables and $LOCALE from Tazwok config file. 1.5 if [ ! "$LOCALE" = "" ]; then 1.6 if [ -d "$_pkg/usr/share/locale" ]; then 1.7 - mkdir -p $fs/usr/share/locale 1.8 for i in $LOCALE 1.9 do 1.10 - cp -a $_pkg/usr/share/locale/$i \ 1.11 - $fs/usr/share/locale 2>/dev/null 1.12 + if [ -d "$_pkg/usr/share/locale/$i" ]; then 1.13 + mkdir -p $fs/usr/share/locale 1.14 + cp -a $_pkg/usr/share/locale/$i $fs/usr/share/locale 1.15 + fi 1.16 done 1.17 fi 1.18 fi