unix: emit +build comments in generator scripts

Change-Id: I8ed64dcb1c1a2119ce6f15fa1be55fbe0b0c637e
Reviewed-on: https://go-review.googlesource.com/10087
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
This commit is contained in:
Ian Lance Taylor
2015-05-15 01:18:51 +00:00
parent 8bcc2dbee4
commit 85f6155b9e
11 changed files with 71 additions and 1 deletions
+1 -1
View File
@@ -257,5 +257,5 @@ esac
esac
if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi
if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.go |gofmt >ztypes_$GOOSARCH.go"; fi
if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.go | sed -e '/^package /i\/\/ +build $GOARCH,$GOOS\n' | gofmt >ztypes_$GOOSARCH.go"; fi
) | $run