1
0

getsystems 365 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. if [ ! -z "$1" ];then
  3. systems=$(grep -h config target/$1/sys-available/*|cut -d " " -f 2)
  4. else
  5. systems=$(grep -h config target/*/sys-available/*|cut -d " " -f 2)
  6. fi
  7. for i in $systems;do
  8. system=${i#ADK_TARGET_SYSTEM_}
  9. system=$(echo $system|tr '[:upper:]_' '[:lower:]-')
  10. system=$(echo $system|sed 's#x86-64#x86_64#')
  11. echo $system
  12. done