summaryrefslogtreecommitdiff
path: root/scripts/adkprepare.sh
blob: a8a90f84fdb03c030edd350dbfea3c518987874e (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh

while getopts "e" option
do
	case $option in
		e) ext=1 ;;
		*) printf "Option not recognized\n";exit 1 ;;
	esac
done
shift $(($OPTIND - 1))

linux() {
	echo "Preparing Linux for OpenADK"
}

darwin() {
	echo "Preparing MacOS X for OpenADK"
}

openbsd() {
	echo "Preparing OpenBSD for OpenADK"
}

netbsd() {
	echo "Preparing NetBSD for OpenADK"
}

freebsd() {
	echo "Preparing FreeBSD for OpenADK"
	pkg_add -r git gmake mksh bash wget unzip gtar gsed gawk
}

freebsd_full() {
	echo "Preparing FreeBSD for full OpenADK package builds"
	pkg_add -r intltool lynx bison zip xkbcomp glib20 libIDL
}

os=$(uname)

case $os in 
	Linux)
		linux
		[[ $ext -eq 1 ]] && linux_full
		;;
	FreeBSD)
		freebsd
		[[ $ext -eq 1 ]] && freebsd_full
		;;
	OpenBSD)
		openbsd
		[[ $ext -eq 1 ]] && openbsd_full
		;;
	NetBSD)
		netbsd
		[[ $ext -eq 1 ]] && netbsd_full
		;;
	Darwin)
		darwin
		[[ $ext -eq 1 ]] && darwin_full
		;;	
esac