diff options
author | JengHyun Kang <jhyuni.kang@samsung.com> | 2015-12-04 18:00:08 +0900 |
---|---|---|
committer | JengHyun Kang <jhyuni.kang@samsung.com> | 2015-12-07 10:41:41 +0900 |
commit | bf6fc5e11d1088c62323bedfd2dbfbda0ec7a13d (patch) | |
tree | 8abc7c1f2c0e40b537953431c8cc5fc289bc4cc5 | |
parent | 61d95b05d85c0b1a2ce730e152eb094551cc69f6 (diff) | |
download | xkeyboard-config-bf6fc5e11d1088c62323bedfd2dbfbda0ec7a13d.tar.gz xkeyboard-config-bf6fc5e11d1088c62323bedfd2dbfbda0ec7a13d.tar.bz2 xkeyboard-config-bf6fc5e11d1088c62323bedfd2dbfbda0ec7a13d.zip |
Modify to exclude some files which are not used currentlysubmit/tizen/20151207.015640accepted/tizen/wearable/20151207.123039accepted/tizen/tv/20151207.123020accepted/tizen/mobile/20151207.123001
Change-Id: I0a0ec2385b15c1eaf2cb36e392b3f5ada9b10df8
-rw-r--r-- | packaging/xkeyboard-config.spec | 2 | ||||
-rwxr-xr-x | remove_unused_files.sh | 92 |
2 files changed, 94 insertions, 0 deletions
diff --git a/packaging/xkeyboard-config.spec b/packaging/xkeyboard-config.spec index 59902b1a..4050202e 100644 --- a/packaging/xkeyboard-config.spec +++ b/packaging/xkeyboard-config.spec @@ -79,6 +79,8 @@ cp -af %{buildroot}/usr/share/X11/xkb/rules/evdev %{buildroot}/usr/share/X11/xkb mv -f %{buildroot}/usr/share/X11/xkb/rules/evdev %{buildroot}/usr/share/X11/xkb/rules/evdev.org sed -i 's/evdev/tizen_%{?profile}/g' %{buildroot}/usr/share/X11/xkb/rules/tizen_"%{?profile}" ln -sf tizen_"%{?profile}" %{buildroot}/usr/share/X11/xkb/rules/evdev +export LOCAL_KEYMAP_PATH=%{buildroot}/usr/share/X11/xkb +./remove_unused_files.sh %endif %files -f %{name}.lang diff --git a/remove_unused_files.sh b/remove_unused_files.sh new file mode 100755 index 00000000..8314dacc --- /dev/null +++ b/remove_unused_files.sh @@ -0,0 +1,92 @@ +#!/bin/sh + +KEYMAP_PATH=${LOCAL_KEYMAP_PATH} +rm -rf ${KEYMAP_PATH}/compat/japan +rm -rf ${KEYMAP_PATH}/compat/olpc +rm -rf ${KEYMAP_PATH}/compat/pc* +rm -rf ${KEYMAP_PATH}/compat/xtest + +rm -rf ${KEYMAP_PATH}/geometry + +rm -rf ${KEYMAP_PATH}/keycodes/amiga +rm -rf ${KEYMAP_PATH}/keycodes/ataritt +rm -rf ${KEYMAP_PATH}/keycodes/digital_vndr +rm -rf ${KEYMAP_PATH}/keycodes/empty +rm -rf ${KEYMAP_PATH}/keycodes/evdev +rm -rf ${KEYMAP_PATH}/keycodes/fujitsu +rm -rf ${KEYMAP_PATH}/keycodes/hp +rm -rf ${KEYMAP_PATH}/keycodes/ibm +rm -rf ${KEYMAP_PATH}/keycodes/macintosh +rm -rf ${KEYMAP_PATH}/keycodes/olpc +rm -rf ${KEYMAP_PATH}/keycodes/sgi_vndr +rm -rf ${KEYMAP_PATH}/keycodes/sony +rm -rf ${KEYMAP_PATH}/keycodes/sun +rm -rf ${KEYMAP_PATH}/keycodes/xfree* + +rm -rf ${KEYMAP_PATH}/rules/HDR +rm -rf ${KEYMAP_PATH}/rules/base* +rm -rf ${KEYMAP_PATH}/rules/bin +rm -rf ${KEYMAP_PATH}/rules/compat +rm -rf ${KEYMAP_PATH}/rules/evdev.* +rm -rf ${KEYMAP_PATH}/rules/xfree* +rm -rf ${KEYMAP_PATH}/rules/xkb.dtd +rm -rf ${KEYMAP_PATH}/rules/xorg* + +rm -rf ${KEYMAP_PATH}/symbols/af +rm -rf ${KEYMAP_PATH}/symbols/al +rm -rf ${KEYMAP_PATH}/symbols/am +rm -rf ${KEYMAP_PATH}/symbols/apl +rm -rf ${KEYMAP_PATH}/symbols/ara +rm -rf ${KEYMAP_PATH}/symbols/at +rm -rf ${KEYMAP_PATH}/symbols/az +rm -rf ${KEYMAP_PATH}/symbols/b* +rm -rf ${KEYMAP_PATH}/symbols/c* +rm -rf ${KEYMAP_PATH}/symbols/d* +rm -rf ${KEYMAP_PATH}/symbols/e* +rm -rf ${KEYMAP_PATH}/symbols/f* +rm -rf ${KEYMAP_PATH}/symbols/g* +rm -rf ${KEYMAP_PATH}/symbols/h* +rm -rf ${KEYMAP_PATH}/symbols/ie +rm -rf ${KEYMAP_PATH}/symbols/il +rm -rf ${KEYMAP_PATH}/symbols/in +rm -rf ${KEYMAP_PATH}/symbols/iq +rm -rf ${KEYMAP_PATH}/symbols/ir +rm -rf ${KEYMAP_PATH}/symbols/is +rm -rf ${KEYMAP_PATH}/symbols/it +rm -rf ${KEYMAP_PATH}/symbols/j* +rm -rf ${KEYMAP_PATH}/symbols/ke +rm -rf ${KEYMAP_PATH}/symbols/kg +rm -rf ${KEYMAP_PATH}/symbols/kh +rm -rf ${KEYMAP_PATH}/symbols/kpdl +rm -rf ${KEYMAP_PATH}/symbols/kr +rm -rf ${KEYMAP_PATH}/symbols/kz +rm -rf ${KEYMAP_PATH}/symbols/l* +rm -rf ${KEYMAP_PATH}/symbols/m* +rm -rf ${KEYMAP_PATH}/symbols/n* +rm -rf ${KEYMAP_PATH}/symbols/o* +rm -rf ${KEYMAP_PATH}/symbols/ph +rm -rf ${KEYMAP_PATH}/symbols/pk +rm -rf ${KEYMAP_PATH}/symbols/pl +rm -rf ${KEYMAP_PATH}/symbols/pt +rm -rf ${KEYMAP_PATH}/symbols/r* +rm -rf ${KEYMAP_PATH}/symbols/se +rm -rf ${KEYMAP_PATH}/symbols/sgi_vndr +rm -rf ${KEYMAP_PATH}/symbols/sharp_vndr +rm -rf ${KEYMAP_PATH}/symbols/shift +rm -rf ${KEYMAP_PATH}/symbols/si +rm -rf ${KEYMAP_PATH}/symbols/sk +rm -rf ${KEYMAP_PATH}/symbols/sn +rm -rf ${KEYMAP_PATH}/symbols/sony_vndr +rm -rf ${KEYMAP_PATH}/symbols/sun_vndr +rm -rf ${KEYMAP_PATH}/symbols/sy +rm -rf ${KEYMAP_PATH}/symbols/t* +rm -rf ${KEYMAP_PATH}/symbols/ua +rm -rf ${KEYMAP_PATH}/symbols/uz +rm -rf ${KEYMAP_PATH}/symbols/v* +rm -rf ${KEYMAP_PATH}/symbols/x* +rm -rf ${KEYMAP_PATH}/symbols/z* + +rm -rf ${KEYMAP_PATH}/types/cancel +rm -rf ${KEYMAP_PATH}/types/caps +rm -rf ${KEYMAP_PATH}/types/default +rm -rf ${KEYMAP_PATH}/types/nokia |