scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 47f5a5ab3e10091dbb0914e14bc70b8ec1d5c4d4
parent 45e99485dbe03c5ed1019ba3eca2d2ed750a7149
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 31 Dec 2018 10:44:43 +0000

Merge branch 'master' of ssh://simple-cc.org:/var/gitrepos/scc

Diffstat:
Msrc/as/mktbl | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/as/mktbl b/src/as/mktbl @@ -1,6 +1,8 @@ #!/bin/sh +unset LC_ALL +LC_COLLATE=C set -e for i @@ -27,6 +29,6 @@ rm -f $$.c target/$family/${cpu}tbl.c trap "rm -f $$.c" 0 2 3 awk '!/^$/ {print $1,NR,$2,$3,$4,$5,$6}' target/$family/$family.dat | -LC_COLLATE=C sort -k1 -k2n | +sort -k1 -k2n | awk -v cpu=`echo $cpu | tr a-z A-Z` -v family=$family -f mktbl.awk > $$.c && mv $$.c target/$family/${cpu}tbl.c