CVSROOT: /cvs Module name: src Changes by: mart...@cvs.openbsd.org 2017/12/14 03:02:53
Modified files: usr.bin/vi/build: Makefile usr.bin/vi/common: options.awk usr.bin/vi/ex : ex.awk Removed files: usr.bin/vi/include: ex_def.h options_def.h Log message: Enable the awk scripts to generate ex_def.h and options_def.h. These scripts generate the enums required for the ex commands and vi options. Before these lists had to be maintained either by hand or someone had to stumble upon these scripts and figure out how to use them. By enabling them these headers are now always in sync based on the comments in the corresponding source files, which are a lot harder to miss during an update than an extra file. Update the awk scripts to the new enum style introduced by bentley@ with his update on options_def.h r1.7 Feedback Makefile semantics by espie@ Original diff and OK tb@ OK millert@