summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJengHyun Kang <jhyuni.kang@samsung.com>2015-10-30 18:22:31 +0900
committerSung-Jin Park <sj76.park@samsung.com>2017-10-20 16:39:37 +0900
commit1265205189cd718af8816ccdc9f72fb519bb7741 (patch)
tree925e1baed2159bfadb4670ca99349920a3972d30
parent13d2087b55b21b6f1b3a8ca95da0f7e417c50047 (diff)
downloadlibxkbcommon-1265205189cd718af8816ccdc9f72fb519bb7741.tar.gz
libxkbcommon-1265205189cd718af8816ccdc9f72fb519bb7741.tar.bz2
libxkbcommon-1265205189cd718af8816ccdc9f72fb519bb7741.zip
Modify a keymap maker script for remove duplicataed defined symbols
Change-Id: I674217754f90bfbc548514f3a695dc3587861e56
-rwxr-xr-xmake_tizen_keymap.sh15
1 files changed, 14 insertions, 1 deletions
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}