source: modipsl/trunk/util/w_i_h @ 2296

Last change on this file since 2296 was 1990, checked in by mafoipsl, 11 years ago

First modification to add ada the new IDRIS machine.

target added into AA_make.gdef :

  • ada : usefull for MPI parallel executables, default on ada.
  • ad_mono : usefull for rebuild and other sequantial executables, Use ins_make -t ad_mono.

rebuild as been installed here : /smphome/rech/psl/rpsl035/bin

FCM has been copied from vargas here : /smphome/rech/psl/rpsl035/FCM/bin

Informations for Ada will be maintained here : https://forge.ipsl.jussieu.fr/igcmg/wiki/Modipsl_ada

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1#!/bin/bash
2# $Id$
3#-----------------------------------------------#
4#--- What is host ?  -  w_i_h  -  21/07/2009 ---#
5#-----------------------------------------------#
6w_z=$(uname -s -n -r -m 2>/dev/null);
7[[ ${?} != 0 ]] && { exit 1; }
8read u_s u_n u_r u_m <<< ${w_z}
9unset w_z;
10#-
11d_n=$(dirname ${0});
12#-
13case ${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    ( ada* )                   DSYS="ada";;
41    ( asterix* | obelix* )     DSYS="lxiv8";;
42    ( ciclad[0-9]* )           DSYS="ciclad";;
43    ( argent[0-9]* )           DSYS="argent";;
44    ( cesium[0-9]* )           DSYS="cesium";;
45    ( platine[0-9]* )          DSYS="platine";;
46    ( titane[0-9]* )           DSYS="titane";;
47    ( mercure* ) \
48     {                         DSYS="sx8mercure"
49      u_l=$(/usr/bin/modulecmd bash list -t 2>&1)
50      for h in ${u_l}
51       do
52        [[ ${h} = 'SX9' ]] && { DSYS="sx9mercure"; break; }
53       done
54      unset u_l h
55     };;
56    ( brodie )                 DSYS="sx8brodie";;
57    ( ulam )                   DSYS="ulam";;
58    ( ds[0-9]* )               DSYS="sxdkrz";;
59    ( babel* )                 DSYS="babel";;
60    ( curie* )                 DSYS="curie";;
61    ( * )                      DSYS="linux";;
62    esac
63  };;
64 ( MIPS )                      DSYS="mips";;
65 ( OSF1 )                      DSYS="osf1";;
66 ( SunOS ) \
67  { case ${u_r} in
68    ( 5\.* )                   DSYS="solaris";;
69    ( * )                      DSYS="sun";;
70    esac
71  };;
72 ( SUPER-UX )                  DSYS="nec";;
73 ( ULTRIX )                    DSYS="ultrix";;
74 ( UNICOS | sn4803 | sn4602 )  DSYS="cray";;
75 ( UNIX_System_V )             DSYS="fjvpp";;
76 (*) \
77  { case ${u_m} in
78    ( "CRAY T3E" )             DSYS="t3e";;
79    ( * )                      DSYS="Unknown";;
80    esac
81  };;
82esac
83#-
84echo "$DSYS";
85unset u_s u_n u_r u_m;
86#-
87exit 0;
88
Note: See TracBrowser for help on using the repository browser.