new-words
diff new-words-py.sh @ 64:c3adf6452eda
lingvo-en-ru.pl script moved to misc/
author | Igor Chubin <igor@chub.in> |
---|---|
date | Sat Nov 12 14:03:54 2011 +0100 (2011-11-12) |
parents | e25de9ea9184 |
children |
line diff
1.1 --- a/new-words-py.sh Tue Nov 01 20:19:18 2011 +0100 1.2 +++ b/new-words-py.sh Sat Nov 12 14:03:54 2011 +0100 1.3 @@ -1,5 +1,11 @@ 1.4 #!/bin/bash 1.5 1.6 +cat <<EOF 1.7 +Please, use the script no more. 1.8 +You can execute new-words.py directly. 1.9 +EOF 1.10 +exit 1 1.11 + 1.12 show_usage() 1.13 { 1.14 cat <<HELP > /dev/stderr 1.15 @@ -134,6 +140,7 @@ 1.16 { 1.17 [ "$PART_TO_PROCESS" == "" ] || PART_TO_PROCESS="-p $PART_TO_PROCESS" 1.18 [ "$ALLOWED_WORDS_FILENAME" = "" ] || ALLOWED_WORDS_FILENAME="-f $ALLOWED_WORDS_FILENAME" 1.19 + [ "$SHOW_RANGE" = "" ] || SHOW_RANGE="-r $SHOW_RANGE" 1.20 [ "$SHOW_RANGE_PERCENTAGE" = "" ] || SHOW_RANGE_PERCENTAGE="-R $SHOW_RANGE_PERCENTAGE" 1.21 [ "$NON_INTERACTIVE_MODE" = YES ] && non_interactive="-n" 1.22 [ "$STAT_ONLY" = YES ] && stat_only="-s" 1.23 @@ -141,10 +148,10 @@ 1.24 [ "$FILTER_WORDS" = NO ] && filter_words="-N" 1.25 [ "$GROUP_WORDS_BY_TWO" = YES ] && group_words_by_two="-2" 1.26 [ "$GROUP_WORDS_BY_THREE" = YES ] && group_words_by_three="-3" 1.27 + [ "$WORDS_GROUPING" = NO ] && words_grouping="-G" 1.28 1.29 - SHOW_RANGE="$SHOW_RANGE" \ 1.30 - WORDS_GROUPING="$WORDS_GROUPING" \ 1.31 $NEW_WORDS_PY -l "$LANGUAGE" \ 1.32 + $SHOW_RANGE \ 1.33 $SHOW_RANGE_PERCENTAGE \ 1.34 $PART_TO_PROCESS \ 1.35 $ALLOWED_WORDS_FILENAME \ 1.36 @@ -154,6 +161,7 @@ 1.37 $filter_words \ 1.38 $group_words_by_two \ 1.39 $group_words_by_three \ 1.40 + $words_grouping \ 1.41 -X get_words_group_words_add_stat "$1" 1.42 } 1.43