diff --git a/.hgignore b/.hgignore index c739a20b7f..7e039d12bd 100644 --- a/.hgignore +++ b/.hgignore @@ -20,6 +20,7 @@ src/cmd/gc/mkbuiltin1 src/cmd/gc/opnames.h src/pkg/Make.deps src/pkg/exp/ogle/ogle +src/pkg/os/signal/unix.go src/pkg/runtime/cgo2c src/pkg/runtime/*/asm.h src/pkg/runtime/runtime.acid.* diff --git a/src/pkg/os/signal/Makefile b/src/pkg/os/signal/Makefile index a1f04b6e18..5a245464a0 100644 --- a/src/pkg/os/signal/Makefile +++ b/src/pkg/os/signal/Makefile @@ -7,5 +7,11 @@ include ../../../Make.$(GOARCH) TARG=os/signal GOFILES=\ signal.go\ + unix.go\ + +CLEANFILES+=unix.go include ../../../Make.pkg + +unix.go: ../../syscall/zerrors_$(GOOS)_$(GOARCH).go + ./mkunix.sh $< > $@ || rm -f $@ diff --git a/src/pkg/os/signal/mkunix.sh b/src/pkg/os/signal/mkunix.sh new file mode 100755 index 0000000000..e1ea66059b --- /dev/null +++ b/src/pkg/os/signal/mkunix.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +# Copyright 2010 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. + +echo '// ./mkunix.sh' "$1" +echo '// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT' +echo + +cat <