1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Use a better variable name and allow the uname to be overridden.

This commit is contained in:
Nicholas Marriott 2009-05-16 22:06:01 +00:00
parent d58bfe5f0a
commit c111310600

16
configure vendored
View File

@ -1,15 +1,15 @@
#!/bin/sh #!/bin/sh
# $Id: configure,v 1.10 2009-05-14 19:49:26 nicm Exp $ # $Id: configure,v 1.11 2009-05-16 22:06:01 nicm Exp $
UNAME=`uname -s` TMUX_PLATFORM=${TMUX_PLATFORM:-`uname -s`}
CONFIG_H=config.h CONFIG_H=config.h
echo "/* $TMUX_PLATFORM */" >$CONFIG_H
CONFIG_MK=config.mk CONFIG_MK=config.mk
echo "# $TMUX_PLATFORM" >$CONFIG_MK
echo "/* $UNAME */" >$CONFIG_H case $TMUX_PLATFORM in
echo "# $UNAME" >$CONFIG_MK
case $UNAME in
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
OpenBSD) OpenBSD)
cat <<EOF >>$CONFIG_H cat <<EOF >>$CONFIG_H
@ -174,9 +174,9 @@ EOF
;; ;;
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
*) *)
echo Unable to configure for $UNAME echo Unable to configure for $TMUX_PLATFORM
exit 1 exit 1
esac esac
echo Configured for $UNAME echo Configured for $TMUX_PLATFORM
exit 0 exit 0