#!/bin/sh . ./.config X=0 Y=0 if [ "$CONFIG_X5" = y ]; then X=5 fi if [ "$CONFIG_X6" = y ]; then X=6 fi if [ "$CONFIG_Y0" = y ]; then Y=0 fi if [ "$CONFIG_Y4" = y ]; then Y=4 fi if [ "$CONFIG_XP23" = y ]; then X=$((X+23)) fi if [ "$CONFIG_YP42" = y ]; then Y=$((Y+42)) fi echo '{"Synthetic": {"X": '$X', "Y": '$Y'}}'