| 123456789101112131415161718192021222324252627282930 | #!/usr/bin/env bashtopdir=$(readlink -nf $(dirname $0)/.. 2>/dev/null || (cd $(dirname $0)/..; pwd -P))systems=$(grep -h config target/*/systems/*|cut -d " " -f 2)echo '' > $topdir/target/config/Config.in.system.defaultfor j in $systems;do	system=${j#ADK_TARGET_SYSTEM_}	systemu=$(echo $system|tr '[:upper:]' '[:lower:]')	printf "config ADK_$systemu\n" >> $topdir/target/config/Config.in.system.default	printf "\tboolean\n\n" >> $topdir/target/config/Config.in.system.defaultdonecat >> $topdir/target/config/Config.in.system.default << EODconfig ADK_TARGET_SYSTEM	stringEODfor i in $systems;do	system=${i#ADK_TARGET_SYSTEM_}	systemu=$(echo $system|tr '[:upper:]' '[:lower:]')	system=$(echo $system|tr '[:upper:]_' '[:lower:]-')	system=$(echo $system|sed 's#x86-64#x86_64#')	printf "\tdefault \"${system}\" if ADK_$systemu\n" >> $topdir/target/config/Config.in.system.defaultdonefor i in $(ls $topdir/target/);do	if [ -d "$topdir/target/$i/systems" ];then		cat $topdir/target/$i/systems/* > $topdir/target/$i/Config.in.systems 2>/dev/null	fidoneexit 0
 |