Import Upstream version 20180207
[hcoop/debian/mlton.git] / bin / host-arch
CommitLineData
7f918cf1
CE
1#!/usr/bin/env bash
2
3set -e
4name=`basename "$0"`
5dir=`dirname "$0"`
6bin=`cd "$dir" && pwd`
7
8die () {
9 echo >&2 "$1"
10 exit 1
11}
12
13usage () {
14 die "usage: $name"
15}
16
17case "$#" in
180)
19;;
20*)
21 usage
22;;
23esac
24
25eval `"$bin/platform"`
26
27echo $HOST_ARCH