[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [simon] scripts: Fixing path names; Correct sorting for non-ascii characters
From:       Peter Grasch <grasch () simon-listens ! org>
Date:       2013-02-13 22:47:08
Message-ID: 20130213224708.C4811A60C8 () git ! kde ! org
[Download RAW message or body]

Git commit be156606457b08896978f064db8e524f6f5f9b8a by Peter Grasch.
Committed on 13/02/2013 at 23:46.
Pushed by grasch into branch 'master'.

Fixing path names; Correct sorting for non-ascii characters

M  +1    -1    scripts/combineprompts.sh
M  +1    -1    scripts/extract_all_words_from_prompts.sh

http://commits.kde.org/simon/be156606457b08896978f064db8e524f6f5f9b8a

diff --git a/scripts/combineprompts.sh b/scripts/combineprompts.sh
index a96a459..3eddb0b 100755
--- a/scripts/combineprompts.sh
+++ b/scripts/combineprompts.sh
@@ -5,7 +5,7 @@ for i in $*; do
 done
 
 cat promptslist | while read i; do
-	datadir="`dirname $i`/data/"
+	datadir="`dirname $i`/"
 	cat $i|while read promptsLine; do
 		echo "$datadir$promptsLine" | sed 's/^\.\///' >> prompts_combined
 	done;
diff --git a/scripts/extract_all_words_from_prompts.sh \
b/scripts/extract_all_words_from_prompts.sh index 23abc30..68eb634 100755
--- a/scripts/extract_all_words_from_prompts.sh
+++ b/scripts/extract_all_words_from_prompts.sh
@@ -1,3 +1,3 @@
 #!/bin/bash
 #LANG="" cat $1 | sed -e \
's/^.*\/\?[0-9][0-9]\?\/[0-9][0-9]\?[0-9]\?[0-9]\?[0-9]\?\(_[0-9]\)\? //g' | sed  -e \
                's/ /\n/g'|  sort | uniq
-LANG="" cat $1 | sed -e 's/^.* //g' | sed  -e 's/ /\n/g'|  sort | uniq
+cat $1| sed 's/^[^ ]\+//g'| sed 's/ /\n/g' |LANG="" sort|uniq


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic