1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Use /usr/bin/mktemp to generate temporary file.

Taken from:	ports/net/netsaint-plugins/scripts/configure 8-)
This commit is contained in:
Dirk Froemberg 2001-04-16 11:50:14 +00:00
parent 199f814e16
commit f6cb2453c0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41459
3 changed files with 18 additions and 12 deletions

View File

@ -5,6 +5,8 @@ if [ -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc ]; then
exit
fi
tempfile=`/usr/bin/mktemp -t checklist`
if [ "${BATCH}" ]; then
set \"zlib\" \"MySQL\"
else
@ -32,14 +34,14 @@ gettext "gettext library support" OFF \
YP "YP/NIS support" OFF \
sysvsem "System V semaphore support" OFF \
sysvshm "System V shared memory support" OFF \
2> /tmp/checklist.tmp.$$
2> $tempfile
retval=$?
if [ -s /tmp/checklist.tmp.$$ ]; then
set `cat /tmp/checklist.tmp.$$`
if [ -s $tempfile ]; then
set `cat $tempfile`
fi
rm -f /tmp/checklist.tmp.$$
rm -f $tempfile
case $retval in
0) if [ -z "$*" ]; then

View File

@ -5,6 +5,8 @@ if [ -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc ]; then
exit
fi
tempfile=`/usr/bin/mktemp -t checklist`
if [ "${BATCH}" ]; then
set \"zlib\" \"MySQL\"
else
@ -39,14 +41,14 @@ sockets "sockets support" OFF \
sysvsem "System V semaphore support" OFF \
sysvshm "System V shared memory support" OFF \
transsid "Transparent session id" OFF \
2> /tmp/checklist.tmp.$$
2> $tempfile
retval=$?
if [ -s /tmp/checklist.tmp.$$ ]; then
set `cat /tmp/checklist.tmp.$$`
if [ -s $tempfile ]; then
set `cat $tempfile`
fi
rm -f /tmp/checklist.tmp.$$
rm -f $tempfile
case $retval in
0) if [ -z "$*" ]; then

View File

@ -5,6 +5,8 @@ if [ -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc ]; then
exit
fi
tempfile=`/usr/bin/mktemp -t checklist`
if [ "${BATCH}" ]; then
set \"zlib\" \"MySQL\"
else
@ -39,14 +41,14 @@ sockets "sockets support" OFF \
sysvsem "System V semaphore support" OFF \
sysvshm "System V shared memory support" OFF \
transsid "Transparent session id" OFF \
2> /tmp/checklist.tmp.$$
2> $tempfile
retval=$?
if [ -s /tmp/checklist.tmp.$$ ]; then
set `cat /tmp/checklist.tmp.$$`
if [ -s $tempfile ]; then
set `cat $tempfile`
fi
rm -f /tmp/checklist.tmp.$$
rm -f $tempfile
case $retval in
0) if [ -z "$*" ]; then