summaryrefslogtreecommitdiff
path: root/intl/synclang
blob: e46dce27c56beb2658d7825e7855074d0426cc6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
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
			echo -n $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