summaryrefslogtreecommitdiff
path: root/util/lang_gen.sh
blob: 0b062b1a09f9364ea7b96f2efc38218b5440fa2e (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

for lang in $(find data/constants/keycodes/extras/ -type f -printf "%f\n" | sed "s/keycodes_//g" | sed "s/_[0-9].*//"); do
  data=$(qmk generate-keycode-extras --version latest --lang $lang)
  if [ "$?" == "0" ]; then
    echo "$data" > quantum/keymap_extras/keymap_$lang.h
  fi
done