rpms/bazaar/FC-4 bazaar.spec,1.8,1.9

Ralf Corsepius rc040203 at freenet.de
Sun Jul 10 07:17:04 UTC 2005


On Fri, 2005-07-08 at 07:25 -0700, Shahms King wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Ralf Corsepius wrote:
> | On Thu, 2005-07-07 at 15:53 -0400, Shahms King wrote:
> |
> |>Author: shahms
> |
> |
> |>Index: bazaar.spec
> |
> |
> |>+# The stand alone annotate is meant to debug baz interals, not
> installation
> |>+# see:
> http://lists.gnu.org/archive/html/gnu-arch-users/2005-04/msg00117.html
> |>+if [ -f $RPM_BUILD_ROOT%{_bindir}/annotate ]; then
> |>+    rm $RPM_BUILD_ROOT%{_bindir}/annotate
> |>+fi
> |
> |
> | Why so clumsy?
> | rm -f $RPM_BUILD_ROOT%{_bindir}/annotate
> |
> | Ralf
> 
> I don't find checking before removing clumsy, myself and I try to avoid
> "rm -f" where possible simply on principle.
What for?

You want to remove annotate if it exists and that's what rm -f does.

I can't imagine any situation where "test -f file && rm file" might be
close to useful.

Ralf





More information about the fedora-extras-commits mailing list