#!/bin/sh #DIR=`pwd` #DIR=`dirname $DIR` #cd $DIR for KM in `ls | grep cxd`; do echo "#define THIS_IS_NOT_MELON" > kmtemp.cpp echo "#include " >> kmtemp.cpp echo "#include " >> kmtemp.cpp echo "#include \"$KM\"" >> kmtemp.cpp cat WriteKeymap.cpp >> kmtemp.cpp g++ kmtemp.cpp -o kmtemp -I ../../../Library/Common ./kmtemp done rm kmtemp*