Sort options with long names that differ only by char case in

the same order that option flags with a similar property are sorted.
This corresponds with the change made to the sort order of the short
names made in the previous update (1.4).

Right now, this change makes no difference at all, as there are no
long option names that differ only in char case (yet.)
This commit is contained in:
kre 2017-11-15 09:21:19 +00:00
parent 6fa7a33d6c
commit 20c8eb69ec
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#! /bin/sh
# $NetBSD: mkoptions.sh,v 1.4 2017/07/01 06:14:51 kre Exp $
# $NetBSD: mkoptions.sh,v 1.5 2017/11/15 09:21:19 kre Exp $
#
# It would be more sensible to generate 2 .h files, one which
@ -41,7 +41,7 @@ ${SED:-sed} <"${IF}" \
-e '/^[ ]*\//d' \
-e '/^[ ]*\*/d' \
-e '/^[ ]*;/d' |
sort -b -k2,2f -k2,2r < "${IF}" |
sort -b -k2,2f -k2,2 < "${IF}" |
while read line
do
# Look for comments in various styles, and ignore them