[PATCH imake] Silence useless pedantry warning from find(1) when running cleanlinks.

Matthieu Herrb matthieu.herrb at laas.fr
Mon Nov 1 02:34:11 PDT 2010


On Mon, Nov 01, 2010 at 02:47:28PM +1000, Peter Hutterer wrote:
> From: Adam Jackson <ajax at nwnk.net>
> 
> "find: warning: you have specified the -depth option after a non-option
> argument -type, but options are not positional (-depth affects tests
> specified before it as well as those specified after it).  Please specify
> options before other arguments."
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
>  cleanlinks |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/cleanlinks b/cleanlinks
> index 3c81d9f..2724800 100644
> --- a/cleanlinks
> +++ b/cleanlinks
> @@ -22,5 +22,5 @@ find . -type l -print |
>  
>  echo Removing empty directories ...
>  #find . -type d -depth -print | xargs rmdir > /dev/null 2>&1
> -find . -type d -depth -empty -print -exec rmdir {} \;
> +find . -depth -type d -empty -print -exec rmdir {} \;
>  exit 0
> -- 
> 1.7.3.1
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reviewed-by: Matthieu Herrb <matthieu.herrb at laas.fr>

-- 
Matthieu Herrb


More information about the xorg-devel mailing list