Description: Make bin/gocr_chk.sh easier to use for build time tests and
 autopkgtest.
Author: Andrius Merkys <merkys@debian.org>
Forwarded: not-needed
--- a/bin/gocr_chk.sh
+++ b/bin/gocr_chk.sh
@@ -27,8 +27,7 @@
 sumchars=0      # tested chars
 badchars=0      # bad chars
 dirs=.
-tmpdir=/tmp/tmp_${USER}_gocr # temporary directory
-mkdir -p $tmpdir
+tmpdir=$(mktemp --directory) # temporary directory
 # echo $tmpdir
 numbers=0       # check numbers only? (not implemented)
 if test "$1" = "-n";    then numbers=1; shift; fi
@@ -104,3 +103,4 @@
 else
  echo -e " : $fdate numfiles= $numfiles bad= $numbad  sumchars= $sumchars bad= $badchars  ?"
 fi
+exit $numbad
