Bug Fix #978: mktemp usage incompatible with some BSD-derived systems
authorColin Clark <colin.clark@cclark.uk>
Wed, 16 Mar 2022 14:24:08 +0000 (14:24 +0000)
committerColin Clark <colin.clark@cclark.uk>
Wed, 16 Mar 2022 14:24:08 +0000 (14:24 +0000)
https://github.com/BestImageViewer/geeqie/issues/978

Variable TMPDIR is not necessarily set.

doc/create-doxygen-lua-api.sh

index 84f7199..0738d72 100755 (executable)
@@ -39,7 +39,7 @@ export DOCDIR="$PWD/html/lua-api"
 export INLINE_SOURCES=NO
 export STRIP_CODE_COMMENTS=YES
 
-TMPFILE=$(mktemp "$TMPDIR/geeqie.XXXXXXXX") || exit 1
+TMPFILE=$(mktemp "${TMPDIR:-/tmp}/geeqie.XXXXXXXX") || exit 1
 
 # Modify the Geeqie doxygen.conf file to produce
 # only the data needed for the lua API document