SPECS: sharutils.spec - tmpfix with use tempfile is debian-specifi...

The Undefined undefine at aramin.net
Fri Jun 17 15:25:31 CEST 2005


On Fri, Jun 17, 2005 at 04:10:28PM +0300, Elan Ruusamäe wrote:
> use mktemp? it's available in PLD
if type -p mktemp >/dev/null 2>/dev/null; then
  temp=`mktemp /var/tmp/$$.shar.XXXXXX` || exit 1
else
  temp=/var/tmp/$$.shar
  rm -f $temp*
fi

etc.. ;)
mktemp is already used. kloczek tok patch from debian, which used
tempfile and don't look, that there is no tempfile in pld.
and i wasted my time to seek tempfile in rpm-based distros ;)

-- 
Andrzej 'The Undefined' Dopierała
UNIX && Linux administrator,      Adam Mickiewicz University WMiI
PLD Linux Developer      HomePage: http://andrzej.dopierala.name/
JID: undefine at piastlan.net         e-mail: andrzej at dopierala.name



More information about the pld-devel-en mailing list