-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.sh
More file actions
executable file
·32 lines (29 loc) · 837 Bytes
/
layout.sh
File metadata and controls
executable file
·32 lines (29 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# Author: Jishnu Mohan <jishnu7@gmail.com>
# 04-03-2014
location="/home/jishnu/git/IndicKeyboard"
src="kannada"
if [ $# -lt 1 ]
then
echo "Usage : $0 language type"
exit
fi
case "$2" in
inscript)
files=('kbd_'$src'_inscript.xml' 'keyboard_layout_set_'$src'_inscript.xml'
'rows_'$src'_inscript.xml'
'rowkeys_'$src'_inscript1.xml' 'rowkeys_'$src'_inscript2.xml'
'rowkeys_'$src'_inscript3.xml' 'rowkeys_'$src'_inscript4.xml')
;;
*)
files=('kbd_'$src'.xml' 'keyboard_layout_set_'$src'.xml'
'rows_'$src'.xml' 'rowkeys_'$src'1.xml'
'rowkeys_'$src'2.xml' 'rowkeys_'$src'3.xml')
;;
esac
cd $location/java/res/xml/
for i in "${files[@]}"
do
echo "copying... ${i/$src/$1}"
sed "s/$src/${1}/g" $i > ${i/$src/$1}
done