summaryrefslogtreecommitdiff
path: root/Source/Kernel/Ressources/Keymaps/MakeMKM.sh
blob: 056abe2f4a612fe3adb2c9f25906e34e8e0ddcc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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 <cstring>" >> kmtemp.cpp
	echo "#include <WChar.class.cpp>" >> kmtemp.cpp
	echo "#include \"$KM\"" >> kmtemp.cpp
	cat WriteKeymap.cpp >> kmtemp.cpp

	g++ kmtemp.cpp -o kmtemp -I ../../../Library/Common
	./kmtemp
done

rm kmtemp*