Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh "b" more forgiving when sorting options to allow reas...
details: https://anonhg.NetBSD.org/src/rev/90e7eb8fdfaf
branches: trunk
changeset: 354496:90e7eb8fdfaf
user: kre <kre%NetBSD.org@localhost>
date: Mon Jun 19 02:43:55 2017 +0000
description:
"b" more forgiving when sorting options to allow reasonable (and intended)
flexibility in option.list format. Changes nothing for current option.list.
diffstat:
bin/sh/mkoptions.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r c6188e22db85 -r 90e7eb8fdfaf bin/sh/mkoptions.sh
--- a/bin/sh/mkoptions.sh Sun Jun 18 23:20:20 2017 +0000
+++ b/bin/sh/mkoptions.sh Mon Jun 19 02:43:55 2017 +0000
@@ -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 @@
-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
Home |
Main Index |
Thread Index |
Old Index