Module Name: src Committed By: christos Date: Tue Apr 16 23:30:19 UTC 2024
Modified Files: src/bin/sh: mkoptions.sh Log Message: Be more explicit with sort fields to produce consistent results with gnu sort (Jan-Benedict Glaw) To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 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.7 src/bin/sh/mkoptions.sh:1.8 --- src/bin/sh/mkoptions.sh:1.7 Sat Apr 6 10:20:27 2024 +++ src/bin/sh/mkoptions.sh Tue Apr 16 19:30:19 2024 @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: mkoptions.sh,v 1.7 2024/04/06 14:20:27 kre Exp $ +# $NetBSD: mkoptions.sh,v 1.8 2024/04/16 23:30:19 christos Exp $ # # It would be more sensible to generate 2 .h files, one which @@ -52,8 +52,8 @@ ${SED:-sed} <"${IF}" \ -e '/^#/d' \ -e '/^[ ]*\//d' \ -e '/^[ ]*\*/d' \ - -e '/^[ ]*;/d' | -sort -b -k2,2f -k2,2 | + -e '/^[ ]*;/d' | +sort -k2b,2f -k2b,2 | while read line do # Look for comments in various styles, and ignore them