mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
2e36ab2363
Relevant/interesting changes (see ChangeLog for more): o variables like .newline and .MAKE.{GID,PID,PPID,UID} should be read-only. o .[NO]READONLY: for control of read-only variables o .SYSPATH: for controlling the path searched for makefiles o allow for white-space between command specifiers @+- o add more details to warning 'Extra targets ignored' o make.1: sync list of built-in variables with reality sort list of built-in variables o cond.c: add more details to error message for numeric comparison o job.c: fix handling of null bytes in output o Allow .break to terminate a .for loop early o var.c: fix out-of-bounds errors when parsing o fix exit status for '-q' (since 1994)
49 lines
1,008 B
Bash
Executable file
49 lines
1,008 B
Bash
Executable file
:
|
|
# This is mostly redundant.
|
|
# These days I use the pseudo machine "host" when building for host
|
|
# and $TARGET_HOST for its objdir
|
|
|
|
# RCSid:
|
|
# $Id: machine.sh,v 1.19 2023/01/17 18:30:21 sjg Exp $
|
|
#
|
|
# @(#) Copyright (c) 1994-2023 Simon J. Gerraty
|
|
#
|
|
# This file is provided in the hope that it will
|
|
# be of use. There is absolutely NO WARRANTY.
|
|
# Permission to copy, redistribute or otherwise
|
|
# use this file is hereby granted provided that
|
|
# the above copyright notice and this notice are
|
|
# left intact.
|
|
#
|
|
# Please send copies of changes and bug-fixes to:
|
|
# sjg@crufty.net
|
|
#
|
|
|
|
# leverage os.sh
|
|
Mydir=`dirname $0`
|
|
. $Mydir/os.sh
|
|
|
|
# some further overrides - mostly for MACHINE_ACH
|
|
case $OS in
|
|
AIX) # from http://gnats.netbsd.org/29386
|
|
MACHINE_ARCH=`bootinfo -T`
|
|
;;
|
|
Bitrig)
|
|
MACHINE_ARCH=$MACHINE;
|
|
;;
|
|
HP-UX)
|
|
MACHINE_ARCH=`IFS="/-."; set $MACHINE; echo $1`
|
|
;;
|
|
esac
|
|
|
|
(
|
|
case "$0" in
|
|
arch*) echo $MACHINE_ARCH;;
|
|
*)
|
|
case "$1" in
|
|
"") echo $MACHINE;;
|
|
*) echo $MACHINE_ARCH;;
|
|
esac
|
|
;;
|
|
esac
|
|
) | toLower
|