Skip to content
This repository
Browse code

[scripts] fix help message, remove some old items

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information...
commit ba139ca01efaea284984fbe38dc9f4822b8013d9 1 parent aeb9b1c
Christopher Hall hxw authored

Showing 1 changed file with 18 additions and 11 deletions. Show diff stats Hide diff stats

  1. +18 11 scripts/ProcessAll
29 scripts/ProcessAll
@@ -10,8 +10,17 @@ ERROR()
10 10 USAGE()
11 11 {
12 12 [ -z "$1" ] || echo error: $*
13   - echo usage: $(basename "$0") '<options>'
14   - echo ' --help -h this message'
  13 + echo usage: $(basename "$0") '<options> <command>'
  14 + echo ' --help -h This message'
  15 + echo ' --verbose -v Display messages'
  16 + echo 'commands:'
  17 + echo ' link Move all symlinks to latest versions'
  18 + echo ' run Rebuild all'
  19 + echo ' cjk Rebuild ko,ja,zh'
  20 + echo ' en Rebuild short for en:pedia (or other two letter language code)'
  21 + echo ' en:dict Rebuild specific item (<lang>:<type>)'
  22 + echo ' analyse Show summary of logs'
  23 + echo ' get Combine and fetch all recently rendered data'
15 24 exit 1
16 25 }
17 26
@@ -101,14 +110,17 @@ AllCSV="${AllCSV##,}"
101 110 for command in $@
102 111 do
103 112 case "${command}" in
  113 + help)
  114 + USAGE
104 115
105 116 # command to rebuild all
106 117 run)
107 118 progress -z 16:128ki -r "${AllCSV}"
108 119 ;;
109 120
110   - cont)
111   - progress -z 16:128ki -l 2 -r 'en:starw,es,fi,fr,hu,it,ja,ko,nl,no,pt,ru,sr,zh'
  121 + # Chinese, Japanese, Korean
  122 + cjk)
  123 + progress -z 16:128ki -r 'ja,ko,zh'
112 124 ;;
113 125
114 126 # retrieve all data
@@ -136,12 +148,7 @@ do
136 148 done
137 149 ;;
138 150
139   - # re-render a few
140   - re-render)
141   - progress -z 16:128ki --re-render 'de,en::::::-2,es,fr,ja,zh'
142   - ;;
143   -
144   - # en is the exception
  151 + # en is the exception (reduce the number of threads)
145 152 en)
146 153 progress -z 16:128ki -r en::::::-2
147 154 ;;
@@ -149,7 +156,7 @@ do
149 156 progress -z 16:128ki --re-render en::::::-2
150 157 ;;
151 158
152   - # run only one
  159 + # run only one language
153 160 [a-z][a-z]|[a-z][a-z]:*)
154 161 progress -z 16:128ki -r "${command}"
155 162 ;;

0 comments on commit ba139ca

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