diff options
author | Dawid Dziurla <dawidd0811@gmail.com> | 2020-03-25 10:37:39 +0100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-25 21:26:15 +1100 |
commit | 8a06b6067ebe5b96a885c8d02b23d9d23fc8e132 (patch) | |
tree | 69534cbd4380ab151f607b4031fbfc54567b9aad /vendor/github.com/creack/pty/mktypes.bash | |
parent | 2dcc52abd066c968d007114f44c55ae8205ded5a (diff) |
go mod vendor
Diffstat (limited to 'vendor/github.com/creack/pty/mktypes.bash')
-rw-r--r-- | vendor/github.com/creack/pty/mktypes.bash | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/github.com/creack/pty/mktypes.bash b/vendor/github.com/creack/pty/mktypes.bash new file mode 100644 index 000000000..82ee16721 --- /dev/null +++ b/vendor/github.com/creack/pty/mktypes.bash @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +GOOSARCH="${GOOS}_${GOARCH}" +case "$GOOSARCH" in +_* | *_ | _) + echo 'undefined $GOOS_$GOARCH:' "$GOOSARCH" 1>&2 + exit 1 + ;; +esac + +GODEFS="go tool cgo -godefs" + +$GODEFS types.go |gofmt > ztypes_$GOARCH.go + +case $GOOS in +freebsd|dragonfly|openbsd) + $GODEFS types_$GOOS.go |gofmt > ztypes_$GOOSARCH.go + ;; +esac |