From 7103ecb2b60831fa9cdaa34448bc924a90fd64dc Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Sun, 8 Oct 2023 19:21:16 +0400 Subject: [PATCH] chore: remove `update_keysyms.sh` script smithay-client-toolkit doesn't generate the keysyms on its own and uses the `xkeysym` crate for that. --- update_keysyms.sh | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 update_keysyms.sh diff --git a/update_keysyms.sh b/update_keysyms.sh deleted file mode 100755 index 18ceb80d6..000000000 --- a/update_keysyms.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -X11_INCLUDEDIR="/usr/include/X11" -KEYSYMDEFS="${X11_INCLUDEDIR}/keysymdef.h - ${X11_INCLUDEDIR}/XF86keysym.h - ${X11_INCLUDEDIR}/Sunkeysym.h - ${X11_INCLUDEDIR}/DECkeysym.h - ${X11_INCLUDEDIR}/HPkeysym.h" -TARGET_FILE=src/seat/keyboard/keysyms.rs - -echo "//" > $TARGET_FILE -echo "// This file was auto-generated using the update-keysyms.sh script." >> $TARGET_FILE -echo "//" >> $TARGET_FILE -echo "" >> $TARGET_FILE -echo "#![allow(missing_docs, non_upper_case_globals, unused_parens, clippy::all)]" >> $TARGET_FILE -echo "#![cfg_attr(rustfmt, rustfmt_skip)]" >> $TARGET_FILE -echo "" >> $TARGET_FILE - -cat $KEYSYMDEFS | sed -e '/XK_Ydiaeresis\s*0x100000ee/d' \ - -e '/#define _/d' \ - -e 's/#define\s*\(\w*\)XK_/#define XKB_KEY_\1/' \ - -e '/\(#ifdef\|#ifndef\|#endif\)/d' \ - -e 's/#define/pub const/g' \ - -e 's/0x\([0-9a-fA-F]*\)/:u32 = 0x\1;/g' >> $TARGET_FILE