gonzui


Format: Advanced Search

tkernel_2/etc/platformbare sourcepermlink (0.01 seconds)

Search this content:

    1: #! /bin/sh -e
    2: #
    3: # ----------------------------------------------------------------------
    4: #     T-Kernel 2.0 Software Package
    5: #
    6: #     Copyright 2011 by Ken Sakamura.
    7: #     This software is distributed under the latest version of T-License 2.x.
    8: # ----------------------------------------------------------------------
    9: #
   10: #     Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
   11: #     Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   12: #
   13: # ----------------------------------------------------------------------
   14: #
   15: 
   16: #       platform
   17: #
   18: #       check cross platform
   19: #
   20: #       "SunOS-sparc" : Solaris Ultra
   21: #       "SunOS-i386"  : Solaris x86
   22: #       "Linux-i686"  : Linux x86
   23: #       "FreeBSD-i386"        : FreeBSDq x86
   24: #       "Cygwin-i686" : Cygwin x86
   25: #       "unknown"     : unknown platform
   26: #
   27: usage='usage: platform'
   28: 
   29: PATH=/usr/bin:/bin
   30: 
   31: os=`uname -s`
   32: 
   33: case $os in
   34:   SunOS)        platform=$os-`uname -p` ;;
   35:   Linux)        platform=$os-`uname -m` ;;
   36:   FreeBSD)      platform=$os-`uname -p` ;;
   37:   CYGWIN*)      platform="Cygwin-`uname -m`" ;;
   38:   *)            platform=unknown ;;
   39: esac
   40: 
   41: echo $platform
   42: 
   43: exit 0