[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FYI: bootstrap dangling symlink tweaks
From: |
Jim Meyering |
Subject: |
Re: FYI: bootstrap dangling symlink tweaks |
Date: |
Tue, 01 Apr 2008 21:09:42 +0200 |
Eric Blake <address@hidden> wrote:
> According to Jim Meyering on 4/1/2008 9:25 AM:
> | The first is because I found a few persistent dangling symlinks
> | in lib/*.[ch] to be annoying.
>
> | +find "$m4_base" "$source_base" \
> | + -name '*.m4' -depth -type l -xtype l -delete > /dev/null 2>&1
>
> Except that doesn't delete dangling links in lib/*.[ch].
>
> You need something like:
>
> find "$m4_base" "$source_base" -depth \
> ~ \( -name '*.m4' -o -name '*.[ch]' \) -type l -xtype l -delete
Too true ;-)