mktemp + tempfile wrapper instead of lfs-utils

Tushar Teredesai tushar at linuxfromscratch.org
Fri Jun 6 21:59:23 PDT 2003


Tushar Teredesai wrote:

> Sometime back 
> <http://archive.linuxfromscratch.org/mail-archives/lfs-dev/2003/04/0351.html> 
> I had proposed using the official mktemp package and
>
>   1. either patch scripts that use tempfile (/usr/bin/updatedb,
>      /usr/bin/bzdiff, /usr/bin/bzcmp) to use mktemp, OR
>   2. create a wrapper tempfile script that will invoke mktemp with the
>      proper options.
>
> Attaching a script for Option 2 above. Please note that the script is 
> not heavily tested and may not be the most optimal. So would 
> appreciate feedback. Probably will submit the script to mktemp 
> maintainer if he would like to include it in the mktemp tarball.
>
> The advantage of using mktemp from mktemp.org is that it is a 
> maintained version (the last update was April 2003); the version is 
> lfs-utils is just a copy of debianutils, so will need to be synced 
> manually each time debianutils is updated.

Attached is a new script with some of the fixes suggested by Richard.

-- 
Tushar Teredesai
   http://www.linuxfromscratch.org/~tushar/
   http://www.geocities.com/tushar/

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tempfile
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20030606/536ea1f1/attachment.ksh>


More information about the lfs-dev mailing list