1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
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
|