new-words

diff new-words.sh @ 17:35eeaf2620ce

minifix
author Igor Chubin <igor@chub.in>
date Sun Apr 04 20:11:22 2010 +0300 (2010-04-04)
parents c65ffd60cc18
children 7e3a52db54ad
line diff
     1.1 --- a/new-words.sh	Sun Apr 04 19:03:30 2010 +0300
     1.2 +++ b/new-words.sh	Sun Apr 04 20:11:22 2010 +0300
     1.3 @@ -25,9 +25,9 @@
     1.4  HELP
     1.5  
     1.6  WORK_DIR=~/.new-words/
     1.7 -TEMP1=`mktemp /tmp/news-words-XXXXXXXXXX`
     1.8 -TEMP2=`mktemp /tmp/news-words-XXXXXXXXXX`
     1.9 -export ORIGINAL_TEXT=`mktemp /tmp/news-words-XXXXXXXXXX-orig`
    1.10 +TEMP1=`mktemp /tmp/new-words-XXXXXXXXXX-temp1`
    1.11 +TEMP2=`mktemp /tmp/new-words-XXXXXXXXXX-temp2`
    1.12 +export ORIGINAL_TEXT=`mktemp /tmp/new-words-XXXXXXXXXX-orig`
    1.13  editor=${EDITOR:-vim}
    1.14  
    1.15  LANGUAGE=en
    1.16 @@ -79,6 +79,7 @@
    1.17      then
    1.18          echo "LANG  KNOWN%  UNKNOWN%  KNOWN    TOTAL"
    1.19          echo "$LANGUAGE    $percentage    `echo \(100-$percentage\) | bc -l`      $total_known    $total"
    1.20 +        rm $after
    1.21          return 0
    1.22      else 
    1.23          echo "# $LANGUAGE, $percentage, <$total_known/$total>"