shithub: scc

Download patch

ref: f6fec412ea43346ce7ee76dfb94881755708de45
parent: c322ed13a88860fa60115775f18a07d2f10aa42a
parent: ff62da50adc533c960598177f019b793994106d4
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Dec 31 05:44:43 EST 2018

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

--- 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 @@
 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