Skip to content

Commit c2d189b

Browse files
committed
chore(scripts): allow custom input header path in generate-ecodes
1 parent a09f2d1 commit c2d189b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/generate-ecodes.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
local fmt = string.format
44
local concat = table.concat
55

6-
local input = "/usr/include/linux/input-event-codes.h"
6+
local input = arg[1] or "/usr/include/linux/input-event-codes.h"
77
local generated_from = fmt("-- Generated by %q from %q", arg[0], input)
88

99
---@type {ABS:{},BTN:{},EV:{},INPUT_PROP:{},KEY:{},LED:{},MSC:{},REL:{},REP:{},SND:{},SW:{},SYN:{}}

0 commit comments

Comments
 (0)