Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(419)

Side by Side Diff: src/pkg/syscall/mkall.sh

Issue 3816043: code review 3816043: syscall: Plan 9 support for x86. (Closed)
Patch Set: diff -r fd41b76c8e51 https://go.googlecode.com/hg/ Created 14 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2 # Copyright 2009 The Go Authors. All rights reserved. 2 # Copyright 2009 The Go Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style 3 # Use of this source code is governed by a BSD-style
4 # license that can be found in the LICENSE file. 4 # license that can be found in the LICENSE file.
5 5
6 # The syscall package provides access to the raw system call 6 # The syscall package provides access to the raw system call
7 # interface of the underlying operating system. Porting Go to 7 # interface of the underlying operating system. Porting Go to
8 # a new architecture/operating system combination requires 8 # a new architecture/operating system combination requires
9 # some manual effort, though there are tools that automate 9 # some manual effort, though there are tools that automate
10 # much of the process. The auto-generated files have names 10 # much of the process. The auto-generated files have names
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 mksyscall="./mksyscall.sh -b32" 147 mksyscall="./mksyscall.sh -b32"
148 mksysnum="./mksysnum_linux.sh /usr/include/asm/unistd.h" 148 mksysnum="./mksysnum_linux.sh /usr/include/asm/unistd.h"
149 mktypes="godefs -gsyscall" 149 mktypes="godefs -gsyscall"
150 ;; 150 ;;
151 windows_386) 151 windows_386)
152 mksyscall="./mksyscall_windows.sh -l32" 152 mksyscall="./mksyscall_windows.sh -l32"
153 mksysnum= 153 mksysnum=
154 mktypes= 154 mktypes=
155 mkerrors="./mkerrors_windows.sh -f -m32" 155 mkerrors="./mkerrors_windows.sh -f -m32"
156 ;; 156 ;;
157 plan9_386)
158 mkerrors=
159 mksyscall="./mksyscall_plan9.sh -l32"
160 mksysnum="./mksysnum_plan9.sh /media/sys/src/libc/9syscall/sys.h"
ality 2011/02/09 19:50:19 Maybe change this to point to sources so others kn
paulzhol 2011/02/10 08:41:40 Done.
161 mktypes="godefs -gsyscall -f -m32"
162 ;;
157 *) 163 *)
158 echo 'unrecognized $GOOS_$GOARCH: ' "$GOOSARCH" 1>&2 164 echo 'unrecognized $GOOS_$GOARCH: ' "$GOOSARCH" 1>&2
159 exit 1 165 exit 1
160 ;; 166 ;;
161 esac 167 esac
162 168
163 ( 169 (
164 if [ -n "$mkerrors" ]; then echo "$mkerrors |gofmt >zerrors_$GOOSARCH.go "; fi 170 if [ -n "$mkerrors" ]; then echo "$mkerrors |gofmt >zerrors_$GOOSARCH.go "; fi
165 syscall_goos="syscall_$GOOS.go" 171 syscall_goos="syscall_$GOOS.go"
166 case "$GOOS" in 172 case "$GOOS" in
167 darwin | freebsd) 173 darwin | freebsd)
168 syscall_goos="syscall_bsd.go $syscall_goos" 174 syscall_goos="syscall_bsd.go $syscall_goos"
169 ;; 175 ;;
170 esac 176 esac
171 if [ -n "$mksyscall" ]; then echo "$mksyscall $syscall_goos syscall_$GOO SARCH.go |gofmt >zsyscall_$GOOSARCH.go"; fi 177 if [ -n "$mksyscall" ]; then echo "$mksyscall $syscall_goos syscall_$GOO SARCH.go |gofmt >zsyscall_$GOOSARCH.go"; fi
172 if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go "; fi 178 if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go "; fi
173 if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.c |gofmt >ztypes_$ GOOSARCH.go"; fi 179 if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.c |gofmt >ztypes_$ GOOSARCH.go"; fi
174 ) | $run 180 ) | $run
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b