mlx4_core: Add helper functions to support MR re-registration
[linux-2.6-block.git] / scripts / tags.sh
index 1c50de8202896fcfd8706e2ef28a741afbbddbd2..e6b011fe1d0d1dfd850f345f55f0a7f057d6435d 100755 (executable)
@@ -50,7 +50,8 @@ find_arch_sources()
        for i in $archincludedir; do
                prune="$prune -wholename $i -prune -o"
        done
-       find ${tree}arch/$1 $ignore $subarchprune $prune -name "$2" -print;
+       find ${tree}arch/$1 $ignore $subarchprune $prune -name "$2" \
+               -not -type l -print;
 }
 
 # find sources in arch/$1/include
@@ -60,14 +61,15 @@ find_arch_include_sources()
                                        -name include -type d -print);
        if [ -n "$include" ]; then
                archincludedir="$archincludedir $include"
-               find $include $ignore -name "$2" -print;
+               find $include $ignore -name "$2" -not -type l -print;
        fi
 }
 
 # find sources in include/
 find_include_sources()
 {
-       find ${tree}include $ignore -name config -prune -o -name "$1" -print;
+       find ${tree}include $ignore -name config -prune -o -name "$1" \
+               -not -type l -print;
 }
 
 # find sources in rest of tree
@@ -76,7 +78,7 @@ find_other_sources()
 {
        find ${tree}* $ignore \
             \( -name include -o -name arch -o -name '.tmp_*' \) -prune -o \
-              -name "$1" -print;
+              -name "$1" -not -type l -print;
 }
 
 find_sources()
@@ -279,7 +281,7 @@ xtags()
                emacs $1
        else
                all_target_sources | xargs $1 -a
-        fi
+       fi
 }
 
 # Support um (which uses SUBARCH)