On Sun, Dec 11, 2005 at 09:13:31PM +0100, Han Boetes wrote:
> http://www.xs4all.nl/~hanb/software/OpenBSD-binary-upgrade/cleanupoldsysfiles
IMHO this is way too dangerous, especially if $usr_lib is defined
(i.e. -l is given).
For example, on my desktop (which actually isn't a desktop, because
it's *under* my desk), I get this:
$ find /usr/lib -mtime +10 -type d -print
/usr/lib/apache
/usr/lib/gcc-lib
/usr/lib/gcc-lib/i386-unknown-openbsd3.8
/usr/lib/gcc-lib/i386-unknown-openbsd3.8/3.3.5/include
/usr/lib/debug
But:
$ ls -l /usr/lib/gcc-lib/i386-unknown-openbsd3.8/3.3.5/*.a
-rw-r--r-- 1 root bin 1394146 Dec 9 19:16
/usr/lib/gcc-lib/i386-unknown-openbsd3.8/3.3.5/libgcc.a
The last full rebuild was two days ago, but I had to delete at least
some of the directory removals your script would output.
Ciao,
Kili