]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add makesyscalls.lua, a rewrite of makesyscalls.sh
authorKyle Evans <kevans@FreeBSD.org>
Sun, 17 Nov 2019 14:08:19 +0000 (14:08 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Sun, 17 Nov 2019 14:08:19 +0000 (14:08 +0000)
commitd3276301abe3b966acfa533fd09cf8baf22dac7c
tree1431ba4c1f354c3390af6be96f30b3ada0720ca8
parentbdb90e761302d44dcbb83f9d111da944e50a61b2
Add makesyscalls.lua, a rewrite of makesyscalls.sh

This currently requires a suitable lua + luafilesystem + luaposix from the
ports tree to build. Discussion is underway in D21893 to add a suitable lua
to the base system, cleverly disguised and out of the way of normal
consumers.

makesyscalls.sh is a good target for rewrite into lua as it's currently a
sh+sed+awk script that can be difficult to add on to, at times. For
instance, adding a new COMPAT* option (that mimicks the behaivor of most
other COMPAT* options) requires a fairly substantial amount of copy/paste;
see r352693 for instance. Attempts to generate part of the awk script for
COMPAT* handling was (very kindly) rejected with a desire to just rewrite
the script in a single language that can handle all of it.

Reviewed by: brooks
Differential Revision: https://reviews.freebsd.org/D21775
sys/tools/makesyscalls.lua [new file with mode: 0644]