diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tags.sh | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh index 47274dc5d823..3c814ba0fa85 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh | |||
@@ -18,28 +18,28 @@ ignore="( -name SCCS -o -name BitKeeper -o -name .svn -o \ | |||
18 | -prune -o" | 18 | -prune -o" |
19 | 19 | ||
20 | # Do not use full path is we do not use O=.. builds | 20 | # Do not use full path is we do not use O=.. builds |
21 | if [ ${src} == ${obj} ]; then | 21 | if [ "${KBUILD_SRC}" == "" ]; then |
22 | tree= | 22 | tree= |
23 | else | 23 | else |
24 | tree=${srctree} | 24 | tree=${srctree}/ |
25 | fi | 25 | fi |
26 | 26 | ||
27 | # find sources in arch/$ARCH | 27 | # find sources in arch/$ARCH |
28 | find_arch_sources() | 28 | find_arch_sources() |
29 | { | 29 | { |
30 | find ${tree}arch/$1 $ignore -name $2 -print; | 30 | find ${tree}arch/$1 $ignore -name "$2" -print; |
31 | } | 31 | } |
32 | 32 | ||
33 | # find sources in arch/$1/include | 33 | # find sources in arch/$1/include |
34 | find_arch_include_sources() | 34 | find_arch_include_sources() |
35 | { | 35 | { |
36 | find ${tree}arch/$1/include $ignore -name $2 -print; | 36 | find ${tree}arch/$1/include $ignore -name "$2" -print; |
37 | } | 37 | } |
38 | 38 | ||
39 | # find sources in include/ | 39 | # find sources in include/ |
40 | find_include_sources() | 40 | find_include_sources() |
41 | { | 41 | { |
42 | find ${tree}include $ignore -name config -prune -o -name $1 -print; | 42 | find ${tree}include $ignore -name config -prune -o -name "$1" -print; |
43 | } | 43 | } |
44 | 44 | ||
45 | # find sources in rest of tree | 45 | # find sources in rest of tree |
@@ -48,27 +48,27 @@ find_other_sources() | |||
48 | { | 48 | { |
49 | find ${tree}* $ignore \ | 49 | find ${tree}* $ignore \ |
50 | \( -name include -o -name arch -o -name '.tmp_*' \) -prune -o \ | 50 | \( -name include -o -name arch -o -name '.tmp_*' \) -prune -o \ |
51 | -name $1 -print; | 51 | -name "$1" -print; |
52 | } | 52 | } |
53 | 53 | ||
54 | find_sources() | 54 | find_sources() |
55 | { | 55 | { |
56 | find_arch_sources $1 $2 | 56 | find_arch_sources $1 "$2" |
57 | find_include_sources $2 | 57 | find_include_sources "$2" |
58 | find_other_sources $2 | 58 | find_other_sources "$2" |
59 | } | 59 | } |
60 | 60 | ||
61 | all_sources() | 61 | all_sources() |
62 | { | 62 | { |
63 | find_sources $SRCARCH *.[chS] | 63 | find_sources $SRCARCH '*.[chS]' |
64 | if [ ! -z "$archinclude" ]; then | 64 | if [ ! -z "$archinclude" ]; then |
65 | find_arch_include_sources $archinclude *.[chS] | 65 | find_arch_include_sources $archinclude '*.[chS]' |
66 | fi | 66 | fi |
67 | } | 67 | } |
68 | 68 | ||
69 | all_kconfigs() | 69 | all_kconfigs() |
70 | { | 70 | { |
71 | find_sources $SRCARCH "Kconfig*" | 71 | find_sources $SRCARCH 'Kconfig*' |
72 | } | 72 | } |
73 | 73 | ||
74 | all_defconfigs() | 74 | all_defconfigs() |