WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [PATCH] Mkbuildtree little fix

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [PATCH] Mkbuildtree little fix
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Tue, 03 May 2005 16:30:40 +0000
Delivery-date: Tue, 03 May 2005 17:03:12 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1846, 2005/05/03 17:30:40+01:00, ydroneaud@xxxxxxxxxxxx

        [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:



 linux-2.4.29-xen-sparse/mkbuildtree |    2 +-
 linux-2.6.11-xen-sparse/mkbuildtree |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/linux-2.4.29-xen-sparse/mkbuildtree 
b/linux-2.4.29-xen-sparse/mkbuildtree
--- a/linux-2.4.29-xen-sparse/mkbuildtree       2005-05-03 13:03:39 -04:00
+++ b/linux-2.4.29-xen-sparse/mkbuildtree       2005-05-03 13:03:39 -04:00
@@ -66,7 +66,7 @@
     (
     cd $i
     pref=`echo $i | sed -e 's#/[^/]*#../#g' -e 's#^\.##'`
-    for j in `find . -type f -o -type l -maxdepth 1`; do
+    for j in `find . -maxdepth 1 -type f -o -type l`; do
       ln -sf ${pref}${REAL_DIR}/$i/$j ${SYMLINK_DIR}/$i/$j
     done
     )
diff -Nru a/linux-2.6.11-xen-sparse/mkbuildtree 
b/linux-2.6.11-xen-sparse/mkbuildtree
--- a/linux-2.6.11-xen-sparse/mkbuildtree       2005-05-03 13:03:39 -04:00
+++ b/linux-2.6.11-xen-sparse/mkbuildtree       2005-05-03 13:03:39 -04:00
@@ -66,7 +66,7 @@
     (
     cd $i
     pref=`echo $i | sed -e 's#/[^/]*#../#g' -e 's#^\.##'`
-    for j in `find . -type f -o -type l -maxdepth 1`; do
+    for j in `find . -maxdepth 1 -type f -o -type l`; do
       ln -sf ${pref}${REAL_DIR}/$i/$j ${SYMLINK_DIR}/$i/$j
     done
     )

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>