[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rm -f semantics
From: |
Peter Eisentraut |
Subject: |
rm -f semantics |
Date: |
Sun, 11 Mar 2001 18:29:53 +0100 (CET) |
MLB branch. Works with fuzz in HEAD.
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.
Before:
$ libtool --mode=clean rm noexist.lo
=> error message, exit 0
$ libtool --mode=clean rm -f noexist.lo
=> error message, exit 0
After:
$ libtool --mode=clean rm noexist.lo
=> error message, exit 1
$ libtool --mode=clean rm -f noexist.lo
=> silent, exit 0
Background note: I generally have my makefiles set up to not ignore
errors in clean, to catch makefile bugs, but I do use 'rm -f' to allow
running clean repeatedly. This patch allows libtool
--mode=clean|uninstall to work as a transparent wrapper around 'rm' and
'rm -f' respectively.
--
Peter Eisentraut address@hidden http://yi.org/peter-e/
rm-force.patch
Description: Patch
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- rm -f semantics,
Peter Eisentraut <=