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