mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-24 04:03:34 -04:00
26 lines
536 B
Plaintext
26 lines
536 B
Plaintext
$NetBSD: patch-ah,v 1.4 2013/01/23 17:26:07 wiz Exp $
|
|
|
|
--- common/options.awk.orig 2007-11-19 03:41:42.000000000 +1100
|
|
+++ common/options.awk
|
|
@@ -2,6 +2,18 @@
|
|
|
|
/^\/\* O_[0-9A-Z_]*/ {
|
|
- printf("#define %s %d\n", $2, cnt++);
|
|
- next;
|
|
+ opt = $2
|
|
+ printf("#define %s %d\n", opt, cnt++)
|
|
+ ofs = FS
|
|
+ FS="\""
|
|
+ do getline
|
|
+ while ($1 != " {L(")
|
|
+ FS=ofs
|
|
+ opt_name = $2
|
|
+ if (opt_name < prev_name) {
|
|
+ printf "missorted %s: \"%s\" < \"%s\"\n", opt, opt_name, prev_name >"/dev/stderr"
|
|
+ exit 1
|
|
+ }
|
|
+ prev_name = opt_name
|
|
+ next
|
|
}
|
|
END {
|