Module Name: src
Committed By: kre
Date: Mon Jun 19 02:43:55 UTC 2017
Modified Files:
src/bin/sh: mkoptions.sh
Log Message:
"b" more forgiving when sorting options to allow reasonable (and intended)
flexibility in option.list format. Changes nothing for current option.list.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/bin/sh/mkoptions.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/sh/mkoptions.sh
diff -u src/bin/sh/mkoptions.sh:1.2 src/bin/sh/mkoptions.sh:1.3
--- src/bin/sh/mkoptions.sh:1.2 Sun May 28 14:14:22 2017
+++ src/bin/sh/mkoptions.sh Mon Jun 19 02:43:55 2017
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: mkoptions.sh,v 1.2 2017/05/28 14:14:22 kre Exp $
+# $NetBSD: mkoptions.sh,v 1.3 2017/06/19 02:43:55 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 -k2,2f -k2,2r < "${IF}" |
+sort -b -k2,2f -k2,2r < "${IF}" |
while read line
do
# Look for comments in various styles, and ignore them