links/intl/synclang
2021-08-28 18:37:32 +03:00

21 lines
407 B
Bash
Executable file

#!/bin/sh
LC_ALL=C
export LC_ALL
echo
echo Syncing other languages.
mkdir ../intl-bak 2>/dev/null
languages=`cat index.txt|sed 's/
//g'`
if [ -n "$languages" ]; then
for i in $languages; do
if [ "$i" != english ]; then
printf $i" " 1>&2
awk -f synclang.awk <$i.lng | sed 's/
//g' >_sync.tmp
mv $i.lng ../intl-bak/$i.lng.bak
mv _sync.tmp $i.lng
fi
done
echo
echo Done.
fi
echo
./gen-intl