diff mbox

[v2] tags: include headers before source files

Message ID 4B7BE984.60107@suse.cz (mailing list archive)
State New, archived
Headers show

Commit Message

Michal Marek Feb. 17, 2010, 1:05 p.m. UTC
None
diff mbox

Patch

diff --git a/scripts/tags.sh b/scripts/tags.sh
index 6f0985d..c122041 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -33,7 +33,7 @@  fi
 find_arch_sources()
 {
        for i in $archincludedir; do
-               prune+="-wholename $i -prune -o "
+               prune="$prune -wholename $i -prune -o"
        done
        find ${tree}arch/$1 $ignore $prune -name "$2" -print;
 }
@@ -43,7 +43,7 @@  find_arch_include_sources()
 {
        include=$(find ${tree}arch/$1/ -name include -type d);
        if [ -n "$include" ]; then
-               archincludedir+="$include "
+               archincludedir="$archincludedir $include"
                find $include $ignore -name "$2" -print;
        fi
 }