OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [go/] [os/] [mkunixsignals.sh] - Blame information for rev 747

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
#!/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 os
12
 
13
import (
14
  "syscall"
15
)
16
 
17
var _ = syscall.Open  // in case there are zero signals
18
 
19
const (
20
EOH
21
 
22
sed -n 's/^const[       ]*\(SIG[A-Z0-9][A-Z0-9]*\)[     ].*/  \1 = UnixSignal(syscall.\1)/p' "$1"
23
 
24
echo ")"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.