Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
add the generated go file
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Shukui <[email protected]>
  • Loading branch information
yangshukui authored and crosbymichael committed Jun 5, 2015
1 parent 12a41c8 commit 4a99434
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ direct-test-short:
go test $(TEST_TAGS) -cover -test.short -v $(GO_PACKAGES)

direct-build:
chmod 755 hack/seccomp.sh
hack/seccomp.sh
go build -v $(GO_PACKAGES)

Expand Down
2 changes: 2 additions & 0 deletions hack/seccomp.pl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
close $out;
exit 0;
}
print "//";
system("uname -m");
print "package seccomp\r\n\r\n";
print "var syscallMap = map[string] int {\n";
while(<$in>) {
Expand Down
3 changes: 2 additions & 1 deletion hack/seccomp.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#/bin/bash
cat seccomp/seccomp_main.go | sed '1,5d' > ~/seccomp_main.go

chmod 755 hack/seccomp.pl
hack/seccomp.pl < hack/syscall.sample > seccomp/seccompsyscall.go
Loading

0 comments on commit 4a99434

Please sign in to comment.