git: sh(1): Add and use pregenerated headers.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sun Feb 18 07:14:47 PST 2018


commit cbb07feb2f78629297b21609f526fcec6e4ad8ee
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Tue Feb 6 23:56:48 2018 +0200

    sh(1): Add and use pregenerated headers.
    
    These only add 30k to the repo while ensuring that bin/sh would not be
    affected by bad shell script invocation etc. As the bonus it solves the
    issue in share/initrd too. Nothing in the generated headers should fail
    for our use cases. If that would change, please report it.

Summary of changes:
 bin/sh/Makefile                |  24 +--
 bin/sh/mknodes/Makefile        |  10 ++
 bin/sh/mksyntax/Makefile       |  10 ++
 bin/sh/pregenerated/builtins.c | 101 +++++++++++
 bin/sh/pregenerated/builtins.h |  97 +++++++++++
 bin/sh/pregenerated/nodes.c    | 368 +++++++++++++++++++++++++++++++++++++++++
 bin/sh/pregenerated/nodes.h    | 163 ++++++++++++++++++
 bin/sh/pregenerated/syntax.c   | 192 +++++++++++++++++++++
 bin/sh/pregenerated/syntax.h   |  54 ++++++
 bin/sh/pregenerated/token.h    | 112 +++++++++++++
 share/initrd/bin/Makefile      |   3 +-
 share/mk/bsd.crunchgen.mk      |   2 +-
 12 files changed, 1124 insertions(+), 12 deletions(-)
 create mode 100644 bin/sh/mknodes/Makefile
 create mode 100644 bin/sh/mksyntax/Makefile
 create mode 100644 bin/sh/pregenerated/builtins.c
 create mode 100644 bin/sh/pregenerated/builtins.h
 create mode 100644 bin/sh/pregenerated/nodes.c
 create mode 100644 bin/sh/pregenerated/nodes.h
 create mode 100644 bin/sh/pregenerated/syntax.c
 create mode 100644 bin/sh/pregenerated/syntax.h
 create mode 100644 bin/sh/pregenerated/token.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cbb07feb2f78629297b21609f526fcec6e4ad8ee


-- 
DragonFly BSD source repository


More information about the Commits mailing list