Re: [PATCH] sim: common: modernize gennltvals.sh

Simon Marchi via Gdb-patches
2021-01-18T14:04:54Z

On 2021-01-17 5:10 a.m., Mike Frysinger via Gdb-patches wrote:
> It's not 1996 anymore, so stop writing shell code like it is, and
> rewrite it with modern POSIX shell standards. This makes it much
> more user friendly.
>
> Then regenerate the file with latest newlib sources to verify.
>
> * Makefile.in (headers): Change args to gennltvals.sh.
> * gennltvals.sh: Rewrite from scratch.
> * gentvals.sh: Delete.
> * nltvals.def: Regen.

I suggest running shellcheck on the file an fixing what it complains about.

Simon