# HG changeset patch # User Igor Chubin # Date 1270401082 -10800 # Node ID 35eeaf2620ce807c255c3520c6934ba58844fb51 # Parent c65ffd60cc182d25a5ed8337fcd21cc7f9021f67 minifix diff -r c65ffd60cc18 -r 35eeaf2620ce new-words.sh --- a/new-words.sh Sun Apr 04 19:03:30 2010 +0300 +++ b/new-words.sh Sun Apr 04 20:11:22 2010 +0300 @@ -25,9 +25,9 @@ HELP WORK_DIR=~/.new-words/ -TEMP1=`mktemp /tmp/news-words-XXXXXXXXXX` -TEMP2=`mktemp /tmp/news-words-XXXXXXXXXX` -export ORIGINAL_TEXT=`mktemp /tmp/news-words-XXXXXXXXXX-orig` +TEMP1=`mktemp /tmp/new-words-XXXXXXXXXX-temp1` +TEMP2=`mktemp /tmp/new-words-XXXXXXXXXX-temp2` +export ORIGINAL_TEXT=`mktemp /tmp/new-words-XXXXXXXXXX-orig` editor=${EDITOR:-vim} LANGUAGE=en @@ -79,6 +79,7 @@ then echo "LANG KNOWN% UNKNOWN% KNOWN TOTAL" echo "$LANGUAGE $percentage `echo \(100-$percentage\) | bc -l` $total_known $total" + rm $after return 0 else echo "# $LANGUAGE, $percentage, <$total_known/$total>"