Skip to content

Commit

Permalink
[scripts] make building all easier
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information
hxw committed Mar 15, 2011
1 parent 62f020b commit d8734dc
Showing 1 changed file with 57 additions and 3 deletions.
60 changes: 57 additions & 3 deletions scripts/ProcessAll
Expand Up @@ -56,32 +56,86 @@ do
esac
done

AllItems='
cy
de
da
el
en::::::-2
en:dict
en:quote
en:trav
en:starw
es
fi
fr
hu
it
ja
ko
nl
no
pt
ru
sr
zh
'

AllLanguages=
AllCSV=
for item in ${AllItems}
do
AllCSV="${AllCSV},${item}"
lang="${item%%:*}"
eval flag="\${lf_${lang}}"
if [ X"${flag}" = X"" ]
then
eval lf_${lang}="${lang}"
AllLanguages="${AllLanguages} ${lang}"
fi
done
AllLanguages="${AllLanguages## }"
AllCSV="${AllCSV##,}"


for command in $@
do
case "${command}" in

# command to rebuild all
run)
progress -z 16:128ki -r 'cy,de,da,el,en::::::-2,en:dict,en:quote,en:trav,en:starw,es,fi,fr,hu,it,ja,ko,nl,no,pt,ru,sr,zh'
progress -z 16:128ki -r "${AllCSV}"
;;

cont)
progress -z 16:128ki -l 2 -r 'en:starw,es,fi,fr,hu,it,ja,ko,nl,no,pt,ru,sr,zh'
;;

# retrieve all data
get)
for l in cy de da el en en:dict en:quote en:trav en:starw es fi fr hu it ja ko nl no pt ru sr zh
for l in ${AllItems}
do
progress -L"${l}" -c -G
done
;;

# link all data
link)
for l in cy de da el en es fi fr hu it ja ko nl no pt ru sr zh
for l in ${AllLanguages}
do
progress -L"${l}" -x
done
;;

# analyse
analyse)
for l in ${AllItems}
do
echo Analysis for: ${l}
progress -L"${l}" -a
done
;;

# re-render a few
re-render)
progress -z 16:128ki --re-render 'de,en::::::-2,es,fr,ja,zh'
Expand Down

0 comments on commit d8734dc

Please sign in to comment.