Avoid the use of the -u option with mktemp.

This commit is contained in:
Mark Adler 2012-03-14 08:34:50 -07:00
parent 8dc21b17a6
commit cb1c1a363e

View File

@ -227,8 +227,8 @@ zlib.3.pdf: zlib.3
groff -mandoc -f H -T ps zlib.3 | ps2pdf - zlib.3.pdf groff -mandoc -f H -T ps zlib.3 | ps2pdf - zlib.3.pdf
zconf.h.cmakein: zconf.h.in zconf.h.cmakein: zconf.h.in
-@ TEMPFILE=`mktemp -u __XXXXXX`; \ -@ TEMPFILE=`mktemp __XXXXXX`; \
echo "/#define ZCONF_H/ a\\\\\n#cmakedefine Z_PREFIX\\\\\n#cmakedefine Z_HAVE_UNISTD_H\n" > $$TEMPFILE &&\ echo "/#define ZCONF_H/ a\\\\\n#cmakedefine Z_PREFIX\\\\\n#cmakedefine Z_HAVE_UNISTD_H\n" >> $$TEMPFILE &&\
sed -f $$TEMPFILE zconf.h.in > zconf.h.cmakein &&\ sed -f $$TEMPFILE zconf.h.in > zconf.h.cmakein &&\
touch -r zconf.h.in zconf.h.cmakein &&\ touch -r zconf.h.in zconf.h.cmakein &&\
rm $$TEMPFILE rm $$TEMPFILE