blob: f7a6116c16f2cf4d7b346965f19a69014ae83ac4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/csh -f
set OS=`uname -s`
set HOST_ARCH=`uname -m`
switch ($OS)
case Linux:
set OS_PART=linux
breaksw
case SunOS:
set OS_PART=sol8-64
breaksw
case OSF1:
set OS_PART=tru64-gcc
breaksw
default:
set OS_PART=`echo $OS | sed 's/ /-/g'`
endsw
switch ($HOST_ARCH)
case i586:
set ARCH=x86
breaksw
case i686:
set ARCH=x86
breaksw
case x86_64:
set ARCH=amd64
breaksw
case sun4u:
set ARCH=v9
breaksw
default:
set ARCH=`echo $HOST_ARCH | sed 's/ /-/g'`
endsw
echo $ARCH-$OS_PART
|