This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FEATURE REQUEST: make uninstall should delete empty directories.


On Fri, 5 Mar 2004, Frederik Fouvry wrote:

>
> ,-- On Wed, 3 Mar, Bob Friesenhahn wrote:
>
> [...]
>
> | It is not always easy to see if a directory is empty. For example,
> | when NFS is being used, sometimes .nfs files are created in the
> | directories, so the directory is not really empty.
>
> Won't remove commands refuse to clean up a directory if it's not
> empty?

The ANSI C remove() function removes non-empty directories under
Linux. :-)

On the other hand, the unlink() system call does not remove non-empty
directories.

Since Automake is multi-platform, it is wise to verify that all
supported platforms can support safe directory removal semantics.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]