mirror of
https://github.com/golang/go
synced 2024-11-19 17:04:41 -07:00
6914b0e3e3
Per golang.org/s/generatedcode Updates #nnn Change-Id: Ia7513ef6bd26c20b62b57b29f7770684a315d389 Reviewed-on: https://go-review.googlesource.com/45470 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
16 lines
486 B
Bash
16 lines
486 B
Bash
#!/bin/bash
|
|
# Copyright 2013 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
cat /Users/rsc/pub/native_client/src/trusted/service_runtime/include/bits/nacl_syscalls.h |
|
|
awk '
|
|
BEGIN {
|
|
printf("// Code generated by mknacl.sh; DO NOT EDIT.\n")
|
|
}
|
|
NF==3 && $1=="#define" && $2~/^NACL_sys_/ {
|
|
name=$2
|
|
sub(/^NACL_sys_/, "SYS_", name)
|
|
printf("#define %s %s\n", name, $3)
|
|
}' >syscall_nacl.h
|