scripts/tags.sh: Ignore *.mod.c
[deliverable/linux.git] / scripts / tags.sh
index 58c4559290915594e1bd18a67770d0d4bafdc6e3..f2c5b006a3d73534d12fcb8c213ae140db4bae4e 100755 (executable)
@@ -11,11 +11,10 @@ if [ "$KBUILD_VERBOSE" = "1" ]; then
        set -x
 fi
 
-# This is a duplicate of RCS_FIND_IGNORE without escaped '()'
-ignore="( -name SCCS -o -name BitKeeper -o -name .svn -o \
-          -name CVS  -o -name .pc       -o -name .hg  -o \
-          -name .git )                                   \
-          -prune -o"
+# RCS_FIND_IGNORE has escaped ()s -- remove them.
+ignore="$(echo "$RCS_FIND_IGNORE" | sed 's|\\||g' )"
+# tags and cscope files should also ignore MODVERSION *.mod.c files
+ignore="$ignore ( -name *.mod.c ) -prune -o"
 
 # Do not use full path if we do not use O=.. builds
 # Use make O=. {tags|cscope}
This page took 0.024607 seconds and 5 git commands to generate.