autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] Keep executability of config.status-ed files


From: Bob Friesenhahn
Subject: Re: [patch] Keep executability of config.status-ed files
Date: Wed, 10 Dec 2003 12:42:26 -0600 (CST)

On Wed, 10 Dec 2003, Jan Kratochvil wrote:
> On Wed, 10 Dec 2003 19:14:00 +0100, Bob Friesenhahn wrote:
> > On Wed, 10 Dec 2003, Akim Demaille wrote:
> ...
> > > chmod +w :)
> >
> > Which will fail if the current user does not have the right to update
> > the file (e.g. owned by another user ID).  This may seem unusual, but
> > it can be expected for a read-only source tree, or if the source tree
> > is extracted by another user.
>
> This 'read-only another user ID' applies to FILE.in but not to FILE - FILE 
> must
> be writable by our (>). Is it OK this way?
>
>       cp srcdir/FILE.in builddir/FILE
>       chmod +w builddir/FILE
>       sed ... <srcdir/FILE.in >builddir/FILE

Seems good to me!

I would prefix that with

   rm -f builddir/FILE

just to make sure.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen





reply via email to

[Prev in Thread] Current Thread [Next in Thread]