1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:54:40 -07:00

gc: use octal escapes in mkopnames

Plan 9's tr(1) doesn't accept the C-style escapes
for tab and newline characters.  I was going to use
the \xFF hexadecimal escapes but GNU tr(1) doesn't
accept those.  It seems octal is the least common
denominator.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5576079
This commit is contained in:
Anthony Martin 2012-01-31 18:15:42 -08:00
parent cc777490fb
commit 8039683cef

View File

@ -14,8 +14,8 @@ echo '{'
sed -n '/OXXX/,/OEND/p' go.h |
cpp |
sed 's!//.*!!; /^#/d' |
tr ' ' '\n' |
tr -d ' \t,' |
tr ' ' '\012' |
tr -d ' \011,' |
grep . |
sort |
grep -v '^OEND$' |