nosuchtim / keykit

KeyKit - an algorithmic MIDI scripting language and GUI system
Other
99 stars 7 forks source link

Use keylib.c to generate lib/keylib.k in linux target #3076

Closed pbarada closed 1 year ago

pbarada commented 1 year ago

Use keylib.c in linux target to getner lib/keylib.k

lib/updatelib.k can generate keylib.k, but it relies on a sufficient lib/keylib.k to start with. Keylib.exe/c acheives same w/o dependency on working lib/keylib.k. Adapt keylib.c for use in linux target, use strncmp instead of strlowcpy to handle case insensitive filenames. Modify linux mdep_lsdir() to strip off original directory and prefix (much as lsdircallback() does). Alphabatize #library content in keylib.c and lib/updatelib.k before generating keylib.k to prevent directory order differences. Generate updated lib/keylib.k