Last change
on this file since 609 was
609,
checked in by bellier, 16 years ago
|
Added definitions for cesium at CCRT
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
File size:
2.1 KB
|
Line | |
---|
1 | #!/bin/ksh |
---|
2 | # $Id$ |
---|
3 | #-----------------------------------------------# |
---|
4 | #- What is host ? - w_i_h - 20/03/2008 -# |
---|
5 | #-----------------------------------------------# |
---|
6 | w_z=$(uname -s -n -r -m 2>/dev/null); |
---|
7 | [[ ${?} != 0 ]] && { exit 1; } |
---|
8 | read u_s u_n u_r u_m << ! |
---|
9 | $(print - ${w_z}) |
---|
10 | ! |
---|
11 | unset w_z; |
---|
12 | #- |
---|
13 | case ${u_s} in |
---|
14 | ( AIX ) \ |
---|
15 | { case ${u_n} in |
---|
16 | ( zahir* ) DSYS="aix";; |
---|
17 | ( vargas* ) DSYS="aix6";; |
---|
18 | ( * ) DSYS="ax_mono"; |
---|
19 | esac |
---|
20 | };; |
---|
21 | ( AIXESA ) DSYS="aixesa";; |
---|
22 | ( ConvexOS ) DSYS="convex";; |
---|
23 | ( CP486 | dev ) DSYS="sco";; |
---|
24 | ( Darwin ) DSYS="Darwin";; |
---|
25 | ( HP-UX ) \ |
---|
26 | { case ${u_n} in |
---|
27 | ( moon ) DSYS="eshpux";; |
---|
28 | ( * ) DSYS="hpux";; |
---|
29 | esac |
---|
30 | };; |
---|
31 | ( IRIX ) \ |
---|
32 | { case ${u_r} in |
---|
33 | ( 4\.* ) DSYS="sgi4";; |
---|
34 | ( * ) DSYS="sgi5";; |
---|
35 | esac |
---|
36 | };; |
---|
37 | ( IRIX64 ) DSYS="sgi6";; |
---|
38 | ( Linux ) \ |
---|
39 | { case ${u_n} in |
---|
40 | ( asterix* | obelix* ) DSYS="lxiv8";; |
---|
41 | ( argent[0-9]* ) DSYS="argent";; |
---|
42 | ( cesium[0-9]* ) DSYS="cesium";; |
---|
43 | ( platine[0-9]* ) DSYS="platine";; |
---|
44 | ( mercure ) DSYS="sx8mercure";; |
---|
45 | ( brodie ) DSYS="sx8brodie";; |
---|
46 | ( ulam ) DSYS="ulam";; |
---|
47 | ( ds[0-9]* ) DSYS="sxdkrz";; |
---|
48 | ( babel* ) DSYS="babel";; |
---|
49 | ( * ) DSYS="linux";; |
---|
50 | esac |
---|
51 | };; |
---|
52 | ( MIPS ) DSYS="mips";; |
---|
53 | ( OSF1 ) DSYS="osf1";; |
---|
54 | ( SunOS ) \ |
---|
55 | { case ${u_r} in |
---|
56 | ( 5\.* ) DSYS="solaris";; |
---|
57 | ( * ) DSYS="sun";; |
---|
58 | esac |
---|
59 | };; |
---|
60 | ( SUPER-UX ) DSYS="nec";; |
---|
61 | ( ULTRIX ) DSYS="ultrix";; |
---|
62 | ( UNICOS | sn4803 | sn4602 ) DSYS="cray";; |
---|
63 | ( UNIX_System_V ) DSYS="fjvpp";; |
---|
64 | (*) \ |
---|
65 | { case ${u_m} in |
---|
66 | ( "CRAY T3E" ) DSYS="t3e";; |
---|
67 | ( * ) DSYS="Unknown";; |
---|
68 | esac |
---|
69 | };; |
---|
70 | esac |
---|
71 | #- |
---|
72 | echo "$DSYS"; |
---|
73 | unset u_s u_n u_r u_m; |
---|
74 | #- |
---|
75 | exit 0; |
---|
Note: See
TracBrowser
for help on using the repository browser.