X-Git-Url: https://git.distorted.org.uk/~mdw/sw-tools/blobdiff_plain/3315e8b31a4707ef2c5491d0c9a9c9a09816bcb2..HEAD:/sw.in diff --git a/sw.in b/sw.in index 756d9cb..c56b7cd 100755 --- a/sw.in +++ b/sw.in @@ -2,7 +2,7 @@ # -*-sh-*- # -# $Id: sw.in,v 1.1 1999/06/02 16:53:32 mdw Exp $ +# $Id: sw.in,v 1.2 2004/04/08 01:52:19 mdw Exp $ # # Determine a canonical `sw' architecture name # @@ -29,13 +29,6 @@ # along with sw-tools; if not, write to the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#----- Revision history ----------------------------------------------------- -# -# $Log: sw.in,v $ -# Revision 1.1 1999/06/02 16:53:32 mdw -# Initial revision -# - # --- Commentary --- # # This is deliberately *not* the same as Autoconf's `config.guess'. The GNU @@ -45,7 +38,7 @@ # --- Step one: find out about the CPU architecture --- -CPU=`uname -p`; CPU=`echo $CPU | tr A-Z a-z` +CPU=`uname -p 2>/dev/null || echo unknown`; CPU=`echo $CPU | tr A-Z a-z` case $CPU in unknown) CPU=`uname -m` ;; esac