From bbd0083b9e9e9cd89342b47846544e0ec78fc05a Mon Sep 17 00:00:00 2001 From: kre Date: Mon, 19 Jun 2017 02:43:55 +0000 Subject: [PATCH] "b" more forgiving when sorting options to allow reasonable (and intended) flexibility in option.list format. Changes nothing for current option.list. --- bin/sh/mkoptions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sh/mkoptions.sh b/bin/sh/mkoptions.sh index e031db05c662..0a362e67ee68 100644 --- a/bin/sh/mkoptions.sh +++ b/bin/sh/mkoptions.sh @@ -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