Generate SEN numbers in a locale independent order

* generate_sen.sh: Sort SEN numbers using C collation rules.
This commit is contained in:
Дмитрий Левин 2016-10-04 08:15:19 +00:00
parent 7082acc0e3
commit c1a0b67db5

View File

@ -3,6 +3,6 @@
echo 'enum {'
echo 'SEN_printargs = 0,'
sed -r -n '/printargs/! s/.*SEN\(([^)]+)\).*/\1/p' |
sort -u |
LC_COLLATE=C sort -u |
sed 's/.*/SEN_&,/'
echo '};'