ia64/xen-unstable

changeset 4750:efa6730ad90e

bitkeeper revision 1.1159.258.112 (4277a730mvnFSFXrxJpVRNk8hjD4Vg)

[PATCH] Mkbuildtree little fix

Hi, here is a really small fix for mkbuildtree.

With my 'find' version [1], I get many of these warning when using mkbuildtree:

find: warning: you have specified the -maxdepth option after a
non-option argument -type, but options are not positional (-maxdepth
affects tests specified before it as well as those specified after it).
Please specify options before other arguments.

My patch just correct the ordering of the options, it should be
harmless, but I didn't test with other versions of find.

Regards

[1] find --version
GNU find version 4.2.20
Features enabled: D_TYPE O_NOFOLLOW(enabled)

xen-unstable-mkbuildtree-find-maxpath.patch:
author ydroneaud@mandriva.com[kaf24]
date Tue May 03 16:30:40 2005 +0000 (2005-05-03)
parents 75432e17bd4a
children abf7ff0997cc 330e761256ad
files BitKeeper/etc/logging_ok linux-2.4.29-xen-sparse/mkbuildtree linux-2.6.11-xen-sparse/mkbuildtree
line diff
     1.1 --- a/BitKeeper/etc/logging_ok	Tue May 03 12:23:54 2005 +0000
     1.2 +++ b/BitKeeper/etc/logging_ok	Tue May 03 16:30:40 2005 +0000
     1.3 @@ -73,3 +73,4 @@ tw275@striker.cl.cam.ac.uk
     1.4  vh249@airwolf.cl.cam.ac.uk
     1.5  vh249@arcadians.cl.cam.ac.uk
     1.6  xenbk@gandalf.hpl.hp.com
     1.7 +ydroneaud@mandriva.com
     2.1 --- a/linux-2.4.29-xen-sparse/mkbuildtree	Tue May 03 12:23:54 2005 +0000
     2.2 +++ b/linux-2.4.29-xen-sparse/mkbuildtree	Tue May 03 16:30:40 2005 +0000
     2.3 @@ -66,7 +66,7 @@ relative_lndir ()
     2.4      (
     2.5      cd $i
     2.6      pref=`echo $i | sed -e 's#/[^/]*#../#g' -e 's#^\.##'`
     2.7 -    for j in `find . -type f -o -type l -maxdepth 1`; do
     2.8 +    for j in `find . -maxdepth 1 -type f -o -type l`; do
     2.9        ln -sf ${pref}${REAL_DIR}/$i/$j ${SYMLINK_DIR}/$i/$j
    2.10      done
    2.11      )
     3.1 --- a/linux-2.6.11-xen-sparse/mkbuildtree	Tue May 03 12:23:54 2005 +0000
     3.2 +++ b/linux-2.6.11-xen-sparse/mkbuildtree	Tue May 03 16:30:40 2005 +0000
     3.3 @@ -66,7 +66,7 @@ relative_lndir ()
     3.4      (
     3.5      cd $i
     3.6      pref=`echo $i | sed -e 's#/[^/]*#../#g' -e 's#^\.##'`
     3.7 -    for j in `find . -type f -o -type l -maxdepth 1`; do
     3.8 +    for j in `find . -maxdepth 1 -type f -o -type l`; do
     3.9        ln -sf ${pref}${REAL_DIR}/$i/$j ${SYMLINK_DIR}/$i/$j
    3.10      done
    3.11      )