Fix regression from 87445ccf8c in a helper script.

This commit is contained in:
John Preston 2017-03-01 21:37:15 +03:00
parent 701acace21
commit 195d3d13d7
1 changed files with 1 additions and 2 deletions

View File

@ -27,8 +27,7 @@ done < tdesktop/Telegram/Resources/langs/list
cd translations/telegram-desktop.langstrings/ cd translations/telegram-desktop.langstrings/
for file in *.strings; do for file in *.strings; do
iconv -f "UTF-16LE" -t "UTF-8" "$file" > "../../tdesktop/Telegram/Resources/langs/lang_$file.tmp" iconv -f "UTF-16LE" -t "UTF-8" "$file" > "../../tdesktop/Telegram/Resources/langs/lang_$file.tmp"
awk '{ if (NR==1) sub(/^\xef\xbb\xbf/,""); sub(/ awk '{ if (NR==1) sub(/^\xef\xbb\xbf/,""); sub(/ /,""); print }' "../../tdesktop/Telegram/Resources/langs/lang_$file.tmp" > "../../tdesktop/Telegram/Resources/langs/lang_$file"
/,""); print }' "../../tdesktop/Telegram/Resources/langs/lang_$file.tmp" > "../../tdesktop/Telegram/Resources/langs/lang_$file"
rm "../../tdesktop/Telegram/Resources/langs/lang_$file.tmp" rm "../../tdesktop/Telegram/Resources/langs/lang_$file.tmp"
done done
touch $FullScriptPath/../telegram.qrc touch $FullScriptPath/../telegram.qrc