source: modipsl/trunk/util/w_i_h @ 87

Last change on this file since 87 was 87, checked in by bellier, 17 years ago

JB: add "argent" and (for the future) "platine"

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1#!/bin/sh
2# $Id$
3#---------------------------------------------------------------------
4#- w_i_h                                                    04/10/1999
5#- Reconnaissance du systeme
6#---------------------------------------------------------------------
7( uname -s 1> /dev/null ) 2> /dev/null
8if [ $? -ne 0 ]; then
9  exit 1;
10fi;
11#-
12USYS=`uname -s`;
13#-
14if   [ "$USYS" = "AIX" ]; then
15  WSYS=`uname -n | sed -e "s/^\(zahir\)\(.*\)/\1/"`;
16  if [ "$WSYS" = "zahir" ]; then
17    DSYS="aix";
18  else
19    DSYS="ax_mono";
20  fi;
21elif [ "$USYS" = "AIXESA" ]; then
22  DSYS="aixesa";
23elif [ "$USYS" = "ConvexOS" ]; then
24  DSYS="convex";
25elif [   "$USYS" = "CP486" \
26      -o "$USYS" = "dev"  ]; then
27  DSYS="sco";
28elif [ "$USYS" = "Darwin" ]; then
29  DSYS="Darwin";
30elif [ "$USYS" = "HP-UX" ]; then
31  WSYS=`uname -n`;
32  if [ "$WSYS" = "moon" ]; then
33    DSYS="eshpux";
34  else
35    DSYS="hpux";
36  fi;
37elif [ "$USYS" = "IRIX" ]; then
38  WSYS=`uname -r | sed -e "s/\..*//"`
39  if [ "$WSYS" = "4" ]; then
40    DSYS="sgi4";
41  else
42    DSYS="sgi5";
43  fi;
44elif [ "$USYS" = "IRIX64" ]; then
45  DSYS="sgi6";
46elif [ "$USYS" = "Linux" ]; then
47  WSYS=`uname -n | sed -e "s/^\(asterix\)\(.*\)/\1/"     \
48                       -e "s/^\(obelix\)\(.*\)/\1/"      \
49                       -e "s/^\(argent\)\([0-9]*\)/\1/"  \
50                       -e "s/^\(platine\)\([0-9]*\)/\1/" \
51                       -e "s/^\(ds\)\([0-9]*\)/\1/"`
52  if [   "$WSYS" = "asterix" \
53      -o "$WSYS" = "obelix" ]; then
54    DSYS="lxiv8";
55  elif [ "$WSYS" = "argent" ]; then
56    DSYS="argent";
57  elif [ "$WSYS" = "platine" ]; then
58    DSYS="platine";
59  elif [ "$WSYS" = "mercure" ]; then
60    DSYS="sx8mercure";
61  elif [ "$WSYS" = "brodie" ]; then
62    DSYS="sx8brodie";
63  elif [ "$WSYS" = "ds" ]; then
64    DSYS="sxdkrz";
65  else
66    DSYS="linux";
67  fi;
68elif [ "$USYS" = "MIPS" ]; then
69  DSYS="mips";
70elif [ "$USYS" = "OSF1" ]; then
71  DSYS="osf1";
72elif [ "$USYS" = "SunOS" ]; then
73  WSYS=`uname -r | sed -e "s/\..*//"`
74  if [ "$WSYS" = "5" ]; then
75    WSYS=`uname -r | sed -e "s/.*\.//"`
76    if [   "$WSYS" = 1 \
77        -o "$WSYS" = 2 \
78        -o "$WSYS" = 3 ]; then
79      DSYS="solaris";
80    else
81      DSYS="solaris";
82    fi;
83  else
84    DSYS="sun";
85  fi;
86elif [ "$USYS" = "SUPER-UX" ]; then
87  DSYS="nec";
88elif [ "$USYS" = "ULTRIX" ]; then
89  DSYS="ultrix";
90elif [   "$USYS" = "UNICOS" \
91      -o "$USYS" = "sn4803" \
92      -o "$USYS" = "sn4602" ]; then
93  DSYS="cray";
94elif [ "$USYS" = "UNIX_System_V" ]; then
95  DSYS="fjvpp";
96else
97  WSYS=`uname -m`;
98  if [ "$WSYS" = "CRAY T3E" ]; then
99    DSYS="t3e";
100  else
101    DSYS="Unknown";
102  fi;
103fi;
104#-
105echo "$DSYS";
106#-
107exit 0;
Note: See TracBrowser for help on using the repository browser.