mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-12 07:29:07 +08:00
Simplify MKTEMP_DT logic
This commit is contained in:
parent
dbfc89f9af
commit
edb76e281a
@ -25,14 +25,7 @@ else
|
|||||||
|
|
||||||
UNAME=$(uname -s | tr 'A-Z' 'a-z')
|
UNAME=$(uname -s | tr 'A-Z' 'a-z')
|
||||||
|
|
||||||
case $UNAME in
|
MKTEMP_DT="mktemp -d -t"
|
||||||
darwin | *freebsd | dragonfly | cygwin*)
|
|
||||||
MKTEMP_DT="mktemp -d -t"
|
|
||||||
;;
|
|
||||||
* )
|
|
||||||
MKTEMP_DT="mktemp -d --tmpdir"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
FONT_CONFIG_CACHE=$(${MKTEMP_DT} font_tmp.XXXXXXXXXX)
|
FONT_CONFIG_CACHE=$(${MKTEMP_DT} font_tmp.XXXXXXXXXX)
|
||||||
|
|
||||||
if [[ ($UNAME == *darwin*) ]]; then
|
if [[ ($UNAME == *darwin*) ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user