[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rm -f semantics
From: |
Gary V . Vaughan |
Subject: |
Re: rm -f semantics |
Date: |
Sun, 8 Apr 2001 10:49:54 +0100 |
On Saturday 07 April 2001 10:04 pm, Peter Eisentraut wrote:
> Gary V. Vaughan writes:
> > On Sunday 11 March 2001 5:29 pm, Peter Eisentraut wrote:
> > > 2001-03-11 Peter Eisentraut <address@hidden>
> > >
> > > * ltmain.in (clean,uninstall): Do not error if the file doesn't
> > > exist and 'rm -f' was used. Exit with status 1 on error.
> >
> > Thanks. Applied.
>
> Oops, I used an (unportable) test -e in there.
Well spotted. That one passed me by entirely. I have adapted your new patch
and commited the attached.
> The other issue is whether or not it seems acceptable to not support the
> deletion of special files through libtool. It seems unlikely that a build
> system would deal with these in the first place.
>
> Comments?
It seems like an awful lot of effort for something that is rarely (if ever)
needed. Besides, in the unlikely event that someone does need to do that
they can always manually remove such files from their Make rule before
invoking libtool clean.
As for -L, I too think it is non-portable, but I'm gambling that the few
hosts that don't support it will set exit statuses correctly so that this
will work:
test -L foo >/dev/null 2>&1 || test -f foo
Cheers,
Gary.
--
___ _ ___ __ _ mailto: address@hidden
/ __|__ _ _ ___ _| | / / | / /_ _ _ _ __ _| |_ __ _ ___ address@hidden
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
\___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page: /___/ /___/ gpg public key:
http://www.oranda.demon.co.uk http://www.oranda.demon.co.uk/key.asc
2001-04-08-peter-clean-2.patch
Description: Text document