klibc-bot for kabe@sra-tohoku.co.jp
2020-Mar-28 21:48 UTC
[klibc] [klibc:update-dash] dash: builtin: create builtins.c properly on old cpp
Commit-ID: 9b271c8b259fff6930f58d2ea3346b0bdd5e66c2 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=9b271c8b259fff6930f58d2ea3346b0bdd5e66c2 Author: kabe at sra-tohoku.co.jp <kabe at sra-tohoku.co.jp> AuthorDate: Mon, 22 Dec 2014 14:50:23 +0900 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: builtin: create builtins.c properly on old cpp [ dash commit 35ff4d5b5a44aaf6fd98edef221dcc3ddcb8dda4 ] Encontered this on ancient gcc-2.95.3 environment; src/builtins.def.in -> src/builtins.def generation emitted ^ $ lines (likely by /* */), which where NOT ignored by src/mkbuiltins and generating bogus builtins.c. Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/mkbuiltins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/dash/mkbuiltins b/usr/dash/mkbuiltins index f562ae22..f412a41b 100644 --- a/usr/dash/mkbuiltins +++ b/usr/dash/mkbuiltins @@ -69,7 +69,7 @@ cat <<\! #include "builtins.h" ! -< $builtins sed '/^#/d; /^$/d' > $temp +< $builtins sed '/^#/d; /^ *$/d' > $temp awk '{ printf "int %s(int, char **);\n", $1}' $temp echo ' const struct builtincmd builtincmd[] = {'
Seemingly Similar Threads
- [klibc:update-dash] builtin: create builtins.c properly on old cpp
- [klibc:update-dash] builtin: Clear LC_ALL in mkbuiltins
- [klibc:update-dash] dash: builtin: Clear LC_ALL in mkbuiltins
- [klibc:update-dash] Revert " dash: mkbuiltins: Fix sort order harder"
- [klibc:update-dash] Revert " dash: mkbuiltins: Fix sort order harder"