diff options
Diffstat (limited to 'vendor/github.com/jesseduffield/pty/mktypes.bash')
-rw-r--r-- | vendor/github.com/jesseduffield/pty/mktypes.bash | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/github.com/jesseduffield/pty/mktypes.bash b/vendor/github.com/jesseduffield/pty/mktypes.bash new file mode 100644 index 000000000..82ee16721 --- /dev/null +++ b/vendor/github.com/jesseduffield/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 |