First commit - second part
Former-commit-id: 202296404e6a70f8ae96db99faffb456104c57e9 Former-commit-id: 118417735d2055683607df9809c9b721cc1b1bab
This commit is contained in:
33
config/guess_port
Executable file
33
config/guess_port
Executable file
@ -0,0 +1,33 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# $Id: guess_port 1825 2013-02-26 09:39:47Z viari $
|
||||
#
|
||||
# @file: guess_port
|
||||
# @desc: attempt to guess the portname
|
||||
# @usage: guess_port
|
||||
#
|
||||
# @history:
|
||||
# @+ <Gloup> Nov. 2000 first draft adapted from GNU config.guess
|
||||
# @+ <Gloup> Feb. 2010 moved to sh
|
||||
#
|
||||
|
||||
mach=`uname -m`
|
||||
syst=`uname -s`
|
||||
rels=`uname -r`
|
||||
|
||||
case ${mach}:${syst}:${rels} in
|
||||
|
||||
alpha:OSF1:* ) echo alpha-osf1;;
|
||||
sun4*:SunOS:5.* ) echo sparc-solaris;;
|
||||
i86pc:SunOS:5.* ) echo i386-solaris;;
|
||||
sun4*:SunOS:* ) echo sparc-sunos;;
|
||||
Power*:Darwin:* ) echo ppc-darwin;;
|
||||
i*86:Linux:* ) echo i386-linux;;
|
||||
x*86*:Linux:* ) echo i386-linux;;
|
||||
i*86:Darwin:* ) echo i386-darwin;;
|
||||
IP*:IRIX*:* ) echo mips-irix;;
|
||||
i*86:MINGW32*:* ) echo x86-mingw32;;
|
||||
|
||||
*) echo unknown ${mach}:${syst}:${rels}; exit 1;;
|
||||
esac
|
||||
exit 0
|
Reference in New Issue
Block a user