File: setup

package info (click to toggle)
codesearch 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 264 kB
  • sloc: sh: 36; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
set -e

os() {
	case "$1" in
	freebsd) echo FreeBSD;;
	linux) echo Linux;;
	darwin) echo Mac OS X;;
	openbsd) echo OpenBSD;;
	netbsd) echo NetBSD;;
	windows) echo Windows;;
	*) echo $1;;
	esac
}

arch() {
	case "$1" in
	386) echo 32-bit x86;;
	amd64) echo 64-bit x86;;
	*) echo $1;;
	esac
}

version=$(cat version)