:1# This is mostly redundant.2# These days I use the pseudo machine "host" when building for host3# and $TARGET_HOST for its objdir45# RCSid:6# $Id: machine.sh,v 1.19 2023/01/17 18:30:21 sjg Exp $7#8# @(#) Copyright (c) 1994-2023 Simon J. Gerraty9#10# This file is provided in the hope that it will11# be of use. There is absolutely NO WARRANTY.12# Permission to copy, redistribute or otherwise13# use this file is hereby granted provided that14# the above copyright notice and this notice are15# left intact.16#17# Please send copies of changes and bug-fixes to:18# [email protected]19#2021# leverage os.sh22Mydir=`dirname $0`23. $Mydir/os.sh2425# some further overrides - mostly for MACHINE_ACH26case $OS in27AIX) # from http://gnats.netbsd.org/2938628MACHINE_ARCH=`bootinfo -T`29;;30Bitrig)31MACHINE_ARCH=$MACHINE;32;;33HP-UX)34MACHINE_ARCH=`IFS="/-."; set $MACHINE; echo $1`35;;36esac3738(39case "$0" in40arch*) echo $MACHINE_ARCH;;41*)42case "$1" in43"") echo $MACHINE;;44*) echo $MACHINE_ARCH;;45esac46;;47esac48) | toLower495051