diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-06-24 08:59:29 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-06-25 10:32:08 +1000 |
commit | 0ecd55223d3f872e70cf1a5302c34248ed854ce6 (patch) | |
tree | 85f0d6a011e1c53ec7445967bcb61b8b28a84ace /tools | |
parent | 314b6486b377bf80a5fd1ac213a5d02315fc98e0 (diff) | |
download | xorg-lib-libxkbcommon-0ecd55223d3f872e70cf1a5302c34248ed854ce6.tar.gz |
tools: print the kccgst format in a usable syntax
Might as well spit that out in the format that e.g. xkbcomp understands.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/rmlvo-to-kccgst.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/rmlvo-to-kccgst.c b/tools/rmlvo-to-kccgst.c index ab9336e..9501890 100644 --- a/tools/rmlvo-to-kccgst.c +++ b/tools/rmlvo-to-kccgst.c @@ -90,10 +90,12 @@ main(int argc, char *argv[]) if (!xkb_components_from_rules(ctx, &rmlvo, &kccgst)) return 1; - printf("keycodes: %s\n", kccgst.keycodes); - printf("types: %s\n", kccgst.types); - printf("compat: %s\n", kccgst.compat); - printf("symbols: %s\n", kccgst.symbols); + printf("xkb_keymap {\n" + " xkb_keycodes { include \"%s\" };\n" + " xkb_types { include \"%s\" };\n" + " xkb_compat { include \"%s\" };\n" + " xkb_symbols { include \"%s\" };\n" + "};\n", kccgst.keycodes, kccgst.types, kccgst.compat, kccgst.symbols); free(kccgst.keycodes); free(kccgst.types); |