Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 #!/usr/bin/env bash | |
2 # Copyright 2010 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. | |
5 | |
6 echo '// ./mkunix.sh' "$1" | |
7 echo '// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT' | |
8 echo | |
9 | |
10 cat <<EOH | |
11 package signal | |
12 | |
13 import ( | |
14 "syscall" | |
15 ) | |
16 | |
17 var _ = syscall.Syscall // in case there are zero signals | |
18 | |
19 const ( | |
20 EOH | |
21 | |
22 sed -n 's/^[ ]*\(SIG[A-Z0-9][A-Z0-9]*\).*/ \1 = UnixSignal(syscall.\1)/p' "$ 1" | |
23 | |
24 echo ")" | |
OLD | NEW |