From kde-commits Wed Feb 13 22:47:08 2013 From: Peter Grasch Date: Wed, 13 Feb 2013 22:47:08 +0000 To: kde-commits Subject: [simon] scripts: Fixing path names; Correct sorting for non-ascii characters Message-Id: <20130213224708.C4811A60C8 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=136079564106074 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=3D"`dirname $i`/data/" + datadir=3D"`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_al= l_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=3D"" 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=3D"" cat $1 | sed -e 's/^.* //g' | sed -e 's/ /\n/g'| sort | uniq +cat $1| sed 's/^[^ ]\+//g'| sed 's/ /\n/g' |LANG=3D"" sort|uniq