Rebuild bash parser.

This commit is contained in:
Andrius Štikonas 2021-01-28 21:55:00 +00:00
parent 2750c82058
commit 596af33507
3 changed files with 9 additions and 4 deletions

View File

@ -245,16 +245,17 @@ be useful later for autotools.
of standard UNIX utilities derived from code by Caldera and Sun. Differently from of standard UNIX utilities derived from code by Caldera and Sun. Differently from
the analogous utilities from the GNU project, they can be compiled with a simple `Makefile`. the analogous utilities from the GNU project, they can be compiled with a simple `Makefile`.
#### Part 21: bash 2.05b #### Part 18: bash 2.05b
GNU `bash` is the most well known shell and the most complex piece of software GNU `bash` is the most well known shell and the most complex piece of software
so far. However, it comes with a number of great benefits over kaem, including so far. However, it comes with a number of great benefits over kaem, including
proper POSIX sh support, globbing, etc. proper POSIX sh support, globbing, etc.
NOTE: Currently, there is a bison pre-generated file here, which we are working Bash ships with a bison pre-generated file here which we delete. Unfortunately,
to remove. we have not bootstrapped bison but fortunately for us, heirloom yacc is able to
cope here.
#### Part 22: m4 1.4 #### Part 19: m4 1.4
`m4` is the first piece of software we need in the autotools suite. It allows `m4` is the first piece of software we need in the autotools suite. It allows
macros to be defined and files to be generated from those macros. macros to be defined and files to be generated from those macros.

View File

@ -17,6 +17,7 @@ cp ../../mk/common.mk common.mk
touch config.h touch config.h
touch include/version.h touch include/version.h
touch include/pipesize.h touch include/pipesize.h
rm y.tab.c y.tab.h
# Patch # Patch
patch -Np0 -i ../../patches/mes-libc.patch patch -Np0 -i ../../patches/mes-libc.patch

View File

@ -78,6 +78,9 @@ mksignames: $(MKSIGNAMES_OBJS)
signames.h: mksignames signames.h: mksignames
./mksignames $@ ./mksignames $@
y.tab.c: parse.y
yacc -d $^
trap.c: signames.h trap.c: signames.h
bash: libsh.a libglob.a libtilde.a $(OBJS) bash: libsh.a libglob.a libtilde.a $(OBJS)