2
# Copyright 2009 The Go Authors. All rights reserved.
3
# Use of this source code is governed by a BSD-style
4
# license that can be found in the LICENSE file.
6
# Disable colored grep if user has it set to --color=always.
7
# (Arguably user error.)
10
echo '// auto generated by mkopnames'
14
sed -n '/OXXX/,/OEND/p' go.h |
16
sed 's!//.*!!; /^#/d' |
22
sed 's/O//; s/.*/ [O&] = "&",/'