#! /bin/sh

# list files containing tables for all configured keyboard mappings

# extract configured keyboard mappings from keymaps.cfg
confkeymaps=`sed -e 's/^[ 	"]*\([A-Za-z0-9][^ 	]*\)[ 	,"]*\([A-Za-z0-9_][^ 	]*\).*\([^ 	][^ 	]\).*/\2.h/' -e t -e d keymaps.cfg`

set -
for map in ${*-$confkeymaps}
do	if [ -f keymaps/$map ]
	then	set - $* keymaps/$map
	else	set - $* keymaps0/$map
	fi
done
echo $*
