hal-info: Branch 'master'

Danny Kukawka dkukawka at kemper.freedesktop.org
Fri Oct 24 02:05:57 PDT 2008


 tools/keymap-check.sh |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

New commits:
commit 1e039e5193181828b1226a6f019eab6a2c248d05
Author: Saleem Abdulrasool <compnerd at compnerd.org>
Date:   Fri Oct 24 11:04:40 2008 +0200

    fix keymap-check.sh to validate keymaps
    
    Fixed keymap-check.sh to validate keymaps. Only check if the map'ed value is
    valid if there is a value.  This prevented 30-keymap-module-sony-laptop.fdi
    from being validated.

diff --git a/tools/keymap-check.sh b/tools/keymap-check.sh
index a05e029..0978d36 100755
--- a/tools/keymap-check.sh
+++ b/tools/keymap-check.sh
@@ -20,9 +20,11 @@ get_line ()
 	cat "$1" | sed -ne '/<!--/ { :c; /-->/! { N; b c; }; /-->/s/<!--.*-->//g }; /^  *$/!p;' | grep "input.keymap.data" | while read line
 	do
 		data=`echo "${line}" | cut -d":" -f2 | cut -d"<" -f1`
-		found=`isin $data`
-		if [ "$found" = "0" ]; then
-			echo "$data "
+		if [ -n "${data}" ] ; then
+			found=`isin $data`
+			if [ "$found" = "0" ]; then
+				echo "$data "
+			fi
 		fi
 	done
 }


More information about the hal-commit mailing list