Show how the machine identifies itself.

This includes `uname', and trying hard to get a domain name when `uname'
doesn't include one.
This commit is contained in:
Eli Barzilay 2012-01-31 14:08:10 -05:00
parent a3ce8bf787
commit 9813ba425f

View File

@ -1175,6 +1175,19 @@ DO_BUILD() { # inputs -- releasing
header -s "Starting build"
local machine_name="$(uname -n)"
if [[ "$machine_name" != *.* ]]; then
if [[ "$(uname -o)" = "Cygwin" ]]; then
machine_name="$machine_name ($(ipconfig | \
grep "Connection-specific DNS Suffix" | \
sed -e 's/^[^:]*: *//' | \
sort -u | grep "[.]"))"
else
machine_name="$(hostname -f)"
fi
fi
show "Machine identifies as $machine_name: $(uname -a)"
if [[ "$renice" != "" ]]; then dont_exit _run renice "$renice" "$$"; fi
export PLTHOME="$workdir/$installdir" PATH="$PLTHOME/bin:$PATH"