Permalink
Browse files

[scripts] fix for type tags

The space in wiki-names.sh cause breakage, replace with hyphen
as shell quoting is just too ugly to try and allow spaces to
propagate easily.

remove redundant code in progress, use th master list from wiki-names

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information...
1 parent 26d2c2b commit d053f925e67a07c9fccdea03837e370a0f41fdda @hxw hxw committed Jan 11, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −1 scripts/progress
  2. +2 −1 scripts/wiki-names.sh
View
2 scripts/progress
@@ -287,7 +287,7 @@ do
l1=en
s1=pedia
first_dir=$(basename "${first_dir}")
- for s in books dict pedia quote starw
+ for s in ${ListOfAllContentTypes}
do
l0="${first_dir%${s}}"
if [ X"${first_dir}" != X"${l0}" ]
View
3 scripts/wiki-names.sh
@@ -3,10 +3,11 @@
# to use: source "$(dirname "$0")/wiki-names.sh"
# type : name : filename
+# Note: no spaces allowed in any line or shell quoting breaks
ContentList='
books:wikibooks:wikibooks-pages-articles.xml:
dict:wiktionary:wiktionary-pages-articles.xml:
-guten:Project Gutenberg:gutenberg:
+guten:Project-Gutenberg:gutenberg:
pedia:wikipedia:wiki-pages-articles.xml:
quote:wikiquote:wikiquote-pages-articles.xml:
starw:Wookieepedia:Wookieepedia-pages-articles.xml

0 comments on commit d053f92

Please sign in to comment.