Changeset 91ece11b in mainline
- Timestamp:
- 2021-10-28T15:13:50Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7b11315
- Parents:
- 8edec53
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/list_profiles.sh
r8edec53 r91ece11b 2 2 3 3 # 4 # Copyright (c) 2021 Jiri Svoboda 4 5 # Copyright (c) 2019 Jiří Zárevúcky 5 6 # All rights reserved. … … 39 40 CONFIG_DEFAULTS="${SOURCE_DIR}/defaults" 40 41 41 # Find all the leaf subdirectories in the defaults directory. 42 find ${CONFIG_DEFAULTS} -type d -links 2 -printf "%P\n" | sort 42 # Find the leaf subdirectories in the defaults directory. 43 level1dirs=`ls "$CONFIG_DEFAULTS"` 44 for dname in $level1dirs; do 45 l2dirs=`ls "$CONFIG_DEFAULTS"/"$dname"` 46 havel2= 47 for dn in $l2dirs; do 48 if [ -d "$CONFIG_DEFAULTS/$dname/$dn" ]; then 49 echo "$dname/$dn" 50 havel2=true 51 fi 52 done 53 if [ -z "$havel2" ]; then 54 echo "$dname" 55 fi 56 done
Note:
See TracChangeset
for help on using the changeset viewer.