File: sysname

package info (click to toggle)
openafs 1.4.2-6etch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 42,324 kB
  • ctags: 55,614
  • sloc: ansic: 397,846; sh: 10,033; makefile: 9,203; perl: 7,679; java: 5,633; asm: 1,276; yacc: 983; lex: 318; tcl: 249; objc: 137; csh: 123
file content (40 lines) | stat: -rw-r--r-- 746 bytes parent folder | download | duplicates (2)
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
39
40
#!/bin/sh
# Maps Debian architectures to AFS sysnames for building the clients and
# libraries.  This doesn't worry about the kernel version; kern-sysname
# does that when building the kernel module.
#
# Not all architectures are listed, only those that OpenAFS supports.

case `dpkg --print-installation-architecture` in
alpha)
    echo alpha_linux_24
    ;;
amd64)
    echo amd64_linux26
    ;;
hppa)
    echo parisc_linux24
    ;;
i[3456]86)
    echo i386_linux26
    ;;
ia64)
    echo ia64_linux26
    ;;
powerpc)
    echo ppc_linux26
    ;;
ppc64)
    echo ppc64_linux26
    ;;
s390)
    echo s390_linux26
    ;;
sparc|sparc64)
    echo sparc_linux24
    ;;
*)
    echo "ERROR: unsupported architecture" >&2
    echo UNKNOWN
    exit 1
esac