Last change
on this file since 662 was
465,
checked in by rybkin, 16 years ago
|
See C.L. 366
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | export LC_ALL=C |
---|
4 | #-------------------------------------------------- |
---|
5 | select_system () |
---|
6 | #-------------------------------------------------- |
---|
7 | { |
---|
8 | if test ! "${UNAME}" = "" ; then |
---|
9 | echo ${UNAME} |
---|
10 | return 0 |
---|
11 | else |
---|
12 | UNAME=`uname` |
---|
13 | fi |
---|
14 | |
---|
15 | may_use_afs=1 |
---|
16 | |
---|
17 | case ${UNAME} in |
---|
18 | Darwin) |
---|
19 | may_use_afs=0 |
---|
20 | ;; |
---|
21 | esac |
---|
22 | |
---|
23 | if test "${may_use_afs}" = 1; then |
---|
24 | a=`fs sysname 2>/dev/null` |
---|
25 | if test $? = 0 ; then |
---|
26 | echo $a | \ |
---|
27 | sed -e "s#[ :]##g" \ |
---|
28 | -e "s#'# #g" \ |
---|
29 | -e "s#Currentsysnameis##" \ |
---|
30 | -e "s#Currentsysnamelistis##" | awk '{print $1}' |
---|
31 | |
---|
32 | return 0 |
---|
33 | fi |
---|
34 | fi |
---|
35 | |
---|
36 | case ${UNAME} in |
---|
37 | LynxOS) |
---|
38 | echo `uname`-`uname -m` |
---|
39 | return 0 |
---|
40 | ;; |
---|
41 | Linux) |
---|
42 | echo `uname`-`uname -m` |
---|
43 | return 0 |
---|
44 | ;; |
---|
45 | Darwin) |
---|
46 | echo `uname` |
---|
47 | return 0 |
---|
48 | ;; |
---|
49 | CYGWIN*) |
---|
50 | echo `uname` |
---|
51 | return 0 |
---|
52 | ;; |
---|
53 | OSF1) |
---|
54 | if test `uname -r` = "V3.2" ; then |
---|
55 | echo alpha_v3 |
---|
56 | return 0 |
---|
57 | fi |
---|
58 | ;; |
---|
59 | HP-UX) |
---|
60 | if test `uname -m` = "9000/780" ; then |
---|
61 | echo hp9000s780 |
---|
62 | return 0 |
---|
63 | elif test `uname -m` = "9000/735" ; then |
---|
64 | echo hp9000s735 |
---|
65 | return 0 |
---|
66 | fi |
---|
67 | ;; |
---|
68 | esac |
---|
69 | |
---|
70 | echo `uname -m` |
---|
71 | return 0 |
---|
72 | } |
---|
73 | |
---|
74 | #-------------------------------------------------- |
---|
75 | # main () |
---|
76 | #-------------------------------------------------- |
---|
77 | |
---|
78 | select_system |
---|
Note: See
TracBrowser
for help on using the repository browser.