Skip to content
Browse files

[scripts] make building all easier

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information...
1 parent 62f020b commit d8734dca66728ea09ef901b4c3cfefe91cbe72f4 @hxw hxw committed
Showing with 57 additions and 3 deletions.
  1. +57 −3 scripts/ProcessAll
View
60 scripts/ProcessAll
@@ -56,6 +56,47 @@ 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
@@ -63,12 +104,16 @@ do
# 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
@@ -76,12 +121,21 @@ do
# 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'

0 comments on commit d8734dc

Please sign in to comment.
Something went wrong with that request. Please try again.