1#/bin/sh 2set -euo pipefail 3 4XKBCONFIGROOT='/usr/share/X11/xkb' 5XLOCALEDIR='/usr/share/X11/locale' 6 7if [ ! -d test/data ]; then 8 echo "Run this from the top source dir" 9 exit 1 10fi 11 12for file in \ 13 symbols/terminate \ 14 symbols/in \ 15 symbols/keypad \ 16 symbols/altwin \ 17 symbols/ctrl \ 18 symbols/eurosign \ 19 symbols/inet \ 20 symbols/shift \ 21 symbols/pc \ 22 symbols/ca \ 23 symbols/cz \ 24 symbols/srvr_ctrl \ 25 symbols/capslock \ 26 symbols/latin \ 27 symbols/level5 \ 28 symbols/macintosh_vndr/apple \ 29 symbols/macintosh_vndr/us \ 30 symbols/us \ 31 symbols/nbsp \ 32 symbols/il \ 33 symbols/group \ 34 symbols/compose \ 35 symbols/level3 \ 36 symbols/ru \ 37 symbols/rupeesign \ 38 symbols/kpdl \ 39 symbols/de \ 40 symbols/ch \ 41 symbols/empty \ 42 keycodes/xfree86 \ 43 keycodes/aliases \ 44 keycodes/evdev \ 45 keycodes/empty \ 46 types/complete \ 47 types/pc \ 48 types/basic \ 49 types/iso9995 \ 50 types/level5 \ 51 types/numpad \ 52 types/extra \ 53 types/mousekeys \ 54 compat/complete \ 55 compat/lednum \ 56 compat/pc \ 57 compat/ledscroll \ 58 compat/basic \ 59 compat/misc \ 60 compat/iso9995 \ 61 compat/accessx \ 62 compat/xfree86 \ 63 compat/level5 \ 64 compat/caps \ 65 compat/ledcaps \ 66 compat/mousekeys \ 67 rules/base \ 68 rules/evdev \ 69; do 70 cp "$XKBCONFIGROOT/$file" "test/data/$file" 71done 72 73for file in \ 74 compose.dir \ 75 locale.alias \ 76 locale.dir \ 77 en_US.UTF-8/Compose \ 78; do 79 cp "$XLOCALEDIR/$file" "test/data/locale/$file" 80done 81