-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_sizes.sh
executable file
·30 lines (24 loc) · 910 Bytes
/
_sizes.sh
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
#!/bin/bash
source define_colors.sh
fromwhere="data2/dist/"
projects="$*"
if [ -z "${projects}" ];then
projects="top ewn wn vn fn sn"
fi
for project in ${projects}; do
>&2 echo -e "${M}${project}${Z}"
if [ "${project}" == "top" ]; then
tag=
suffix=
else
tag="-${project}"
suffix="${project}"
fi
towhere=browser${suffix}/src/main/res/values/integer_sizes.xml
>&2 echo -e "${G}${towhere}${Z}"
echo '<?xml version="1.0" encoding="utf-8"?>' > "${towhere}"
echo '<resources xmlns:tools="http://schemas.android.com/tools">' >> "${towhere}"
./_sizes.py "${fromwhere}" sqlunet${tag}.sqlite db${tag}/sqlunet${tag}.db db${tag}/sqlunet${tag}.db.zip 2> /dev/null >> "${towhere}"
#./_sizes.py "${where}" sqlunet${tag}.sqlite db${tag}/sqlunet${tag}.db db${tag}/sqlunet${tag}.db.zip words samples definitions 2> /dev/null >> "${towhere}"
echo '</resources>' >> "${towhere}"
done