get test script to work on linux
This commit is contained in:
parent
2458541c71
commit
1a17b040c7
@ -5,8 +5,16 @@ topdir=`dirname $0`/..
|
|||||||
|
|
||||||
initvariables $0
|
initvariables $0
|
||||||
# The question is utf-8. As recollq will use the locale to translate the cmd
|
# The question is utf-8. As recollq will use the locale to translate the cmd
|
||||||
# line, need an utf-8 locale
|
# line, need an utf-8 locale. This will fails on Linux (ubuntu lucid), the
|
||||||
export LANG=uk_UA.UTF-8
|
# shell translates the argument to ?????????. As the locale is already utf-8
|
||||||
|
# in this case, just don't change it.
|
||||||
|
|
||||||
|
sys=`uname`
|
||||||
|
case $sys in
|
||||||
|
Linux);;
|
||||||
|
*)export LANG=uk_UA.UTF-8;;
|
||||||
|
esac
|
||||||
|
|
||||||
recollq 'внешнии' 2> $mystderr |
|
recollq 'внешнии' 2> $mystderr |
|
||||||
egrep -v '^Recoll query: ' > $mystdout
|
egrep -v '^Recoll query: ' > $mystdout
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user