Earnie Boyd wrote:
> 
> --- Bruce Korb <[EMAIL PROTECTED]> wrote:

> > I made an archive file named "configure" that contains
> > a shar archive of the generated files.  It runs, recreating
> > the generated files, deletes itself and then runs autoconf.
>                        ^^^^^^^^^^^^^^ NOT PORTABLE.
> 
> Not all environments will allow you to delete an open file. 
> A file that tries to delete itself will fail on such an environment.

> -8<-

Yep.  You're right.  It just means it has to be named
differently and it does not disappear.  OTOH, it is only
used for fresh CVS installations by people that I would
presume to be developers, not the "general public".  Thus,
I don't care that much that it does not work on retrograde
platforms.  I will, however, rewrite the "rm -f" as:

   (  mv -f ${srcdir}/configure ${srcdir}/CFG$$.tmp || exit 1
      rm -f ${srcdir}/CFG$$.tmp || : ) >/dev/null 2>&1 || {
      echo "You must now delete ${srcdir}/configure and run autoconf"
      exit 0
   }

I suppose that is not portable, either?  :-}

Reply via email to