diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tags.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh index caa867dba16d..868b4c8fc25f 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh | |||
@@ -24,9 +24,20 @@ else | |||
24 | tree=${srctree}/ | 24 | tree=${srctree}/ |
25 | fi | 25 | fi |
26 | 26 | ||
27 | # Find all available archs | ||
28 | find_all_archs() | ||
29 | { | ||
30 | ALLSOURCE_ARCHS="" | ||
31 | for arch in `ls ${tree}arch`; do | ||
32 | ALLSOURCE_ARCHS="${ALLSOURCE_ARCHS} "${arch##\/} | ||
33 | done | ||
34 | } | ||
35 | |||
27 | # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH | 36 | # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH |
28 | if [ "${ALLSOURCE_ARCHS}" = "" ]; then | 37 | if [ "${ALLSOURCE_ARCHS}" = "" ]; then |
29 | ALLSOURCE_ARCHS=${SRCARCH} | 38 | ALLSOURCE_ARCHS=${SRCARCH} |
39 | elif [ "${ALLSOURCE_ARCHS}" = "all" ]; then | ||
40 | find_all_archs | ||
30 | fi | 41 | fi |
31 | 42 | ||
32 | # find sources in arch/$ARCH | 43 | # find sources in arch/$ARCH |