1
0
mirror of https://github.com/golang/go synced 2024-10-02 04:18:33 -06:00
go/src/runtime/mknacl.sh
Brad Fitzpatrick 6914b0e3e3 runtime, unicode: use consistent banner for generated code
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>
2017-06-13 05:33:40 +00:00

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