mirror of
https://github.com/creack/pty.git
synced 2026-03-31 10:37:09 +09:00
* add openbsd/amd64 support * Remove extra C dependency and add time include Signed-off-by: Guillaume J. Charmes <gcharmes@magicleap.com>
20 lines
329 B
Bash
Executable File
20 lines
329 B
Bash
Executable File
#!/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
|