24 lines
555 B
Bash
Executable File
24 lines
555 B
Bash
Executable File
#!/bin/sh
|
|
|
|
topdir=`dirname $0`/..
|
|
. $topdir/shared.sh
|
|
|
|
initvariables $0
|
|
# The question is utf-8. As recollq will use the locale to translate the cmd
|
|
# line, need an utf-8 locale. This will fails on Linux (ubuntu lucid), the
|
|
# 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 |
|
|
egrep -v '^Recoll query: ' > $mystdout
|
|
|
|
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
|
|
|
checkresult
|