|
@@ -804,7 +804,7 @@ static SDL_Scancode const linux_scancode_table[] = {
|
|
|
function get_keyname
|
|
|
{
|
|
|
value=$(echo "$1" | awk '{print $3}')
|
|
|
- fgrep KEY_ /usr/include/linux/input-event-codes.h | while read line; do
|
|
|
+ grep -F KEY_ /usr/include/linux/input-event-codes.h | while read line; do
|
|
|
read -ra fields <<<"$line"
|
|
|
if [ "${fields[2]}" = "$value" ]; then
|
|
|
echo "${fields[1]}"
|
|
@@ -813,7 +813,7 @@ function get_keyname
|
|
|
done
|
|
|
}
|
|
|
|
|
|
-fgrep SDL_SCANCODE scancodes_linux.h | while read line; do
|
|
|
+grep -F SDL_SCANCODE scancodes_linux.h | while read line; do
|
|
|
if [ $(echo "$line" | awk '{print NF}') -eq 5 ]; then
|
|
|
name=$(get_keyname "$line")
|
|
|
if [ "$name" != "" ]; then
|
|
@@ -832,11 +832,11 @@ function get_comment
|
|
|
{
|
|
|
name=$(echo "$1" | awk '{print $7}')
|
|
|
if [ "$name" != "" ]; then
|
|
|
- egrep "$name\s" /usr/include/linux/input-event-codes.h | fgrep "/*" | sed 's,[^/]*/,/,'
|
|
|
+ grep -E "$name\s" /usr/include/linux/input-event-codes.h | grep -F "/*" | sed 's,[^/]*/,/,'
|
|
|
fi
|
|
|
}
|
|
|
|
|
|
-fgrep SDL_SCANCODE scancodes_linux.h | while read line; do
|
|
|
+grep -F SDL_SCANCODE scancodes_linux.h | while read line; do
|
|
|
comment=$(get_comment "$line")
|
|
|
if [ "$comment" != "" ]; then
|
|
|
echo " $line $comment"
|