From e6ffbfd0a67fc9677acc44ad2df8cae266675390 Mon Sep 17 00:00:00 2001 From: JengHyun Kang Date: Fri, 30 Oct 2015 18:22:31 +0900 Subject: [PATCH] Modify a keymap maker script for remove duplicataed defined symbols Change-Id: I674217754f90bfbc548514f3a695dc3587861e56 --- make_tizen_keymap.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/make_tizen_keymap.sh b/make_tizen_keymap.sh index 8617112..a61d148 100755 --- a/make_tizen_keymap.sh +++ b/make_tizen_keymap.sh @@ -18,6 +18,7 @@ else fi echo "Generate a tizen keymap header file" +touch $NEW_DEFINE_SYM_FILE while read KEYNAME KEYCODE do @@ -34,9 +35,21 @@ do break fi done + BOOL_DUPLICATED_SYM=false if [ "$BOOL_FOUND_SYM" = false ] then - echo "${KEYSYM}" >> $NEW_DEFINE_SYM_FILE + while read KEYSYM_NEW + do + if [ "$KEYSYM_NEW" = "$KEYSYM" ] + then + BOOL_DUPLICATED_SYM=true + break + fi + done < ${NEW_DEFINE_SYM_FILE} + if [ "$BOOL_DUPLICATED_SYM" = false ] + then + echo "${KEYSYM}" >> $NEW_DEFINE_SYM_FILE + fi fi done < ${KEYMAP_FILE_PATH} -- 2.7.4