summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-30 00:05:36 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-30 00:05:36 +0200
commitf173d6ae31082439be71d9f5dcf6074ca6355520 (patch)
tree694102a6649c92339b17ad29c70886c5bf32ab80 /scripts
parentf317da803e8a1ccba33cddae4c4e7be28f9b0b47 (diff)
parent049456b052c54b6c148438075bea9c4853d9bc95 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/adkprepare.sh57
-rwxr-xr-xscripts/tsort3
2 files changed, 51 insertions, 9 deletions
diff --git a/scripts/adkprepare.sh b/scripts/adkprepare.sh
index a8a90f84f..5faaed56e 100755
--- a/scripts/adkprepare.sh
+++ b/scripts/adkprepare.sh
@@ -1,5 +1,10 @@
#!/bin/sh
+os=$(uname)
+ver=$(uname -r)
+arch=$(uname -m)
+
+ext=0
while getopts "e" option
do
case $option in
@@ -19,10 +24,44 @@ darwin() {
openbsd() {
echo "Preparing OpenBSD for OpenADK"
+ PKG_PATH="ftp://ftp.openbsd.org/pub/OpenBSD/${ver}/packages/${arch}/"
+ export PKG_PATH
+ pkg_add -v gmake
+ pkg_add -v git
+ pkg_add -v bash
+ pkg_add -v unzip
+ pkg_add -v wget
+ pkg_add -v gtar--
+ pkg_add -v gawk
+ pkg_add -v gsed
+ pkg_add -v xz
}
netbsd() {
echo "Preparing NetBSD for OpenADK"
+ PKG_PATH="ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/${arch}/5.0/All/"
+ export PKG_PATH
+ pkg_add -vu xz
+ pkg_add -vu scmgit
+ pkg_add -vu gmake
+ pkg_add -vu mksh
+ pkg_add -vu bash
+ pkg_add -vu wget
+ pkg_add -vu unzip
+ pkg_add -vu gtar
+ pkg_add -vu gsed
+ pkg_add -vu gawk
+}
+
+netbsd_full() {
+ echo "Preparing NetBSD for full OpenADK package builds"
+ pkg_add -vu intltool
+ pkg_add -vu lynx
+ pkg_add -vu pkg-config
+ pkg_add -vu zip
+ pkg_add -vu bison
+ pkg_add -vu libIDL
+ pkg_add -vu xkbcomp
}
freebsd() {
@@ -35,28 +74,28 @@ freebsd_full() {
pkg_add -r intltool lynx bison zip xkbcomp glib20 libIDL
}
-os=$(uname)
-
case $os in
Linux)
linux
- [[ $ext -eq 1 ]] && linux_full
+ [ $ext -eq 1 ] && linux_full
;;
FreeBSD)
freebsd
- [[ $ext -eq 1 ]] && freebsd_full
+ [ $ext -eq 1 ] && freebsd_full
;;
OpenBSD)
openbsd
- [[ $ext -eq 1 ]] && openbsd_full
+ [ $ext -eq 1 ] && openbsd_full
;;
NetBSD)
netbsd
- [[ $ext -eq 1 ]] && netbsd_full
+ [ $ext -eq 1 ] && netbsd_full
;;
Darwin)
darwin
- [[ $ext -eq 1 ]] && darwin_full
- ;;
+ [ $ext -eq 1 ] && darwin_full
+ ;;
+ *)
+ echo "OS not supported"
+ ;;
esac
-
diff --git a/scripts/tsort b/scripts/tsort
index d4b176f6f..77ffa1237 100755
--- a/scripts/tsort
+++ b/scripts/tsort
@@ -7,6 +7,9 @@ case $os in
NetBSD|MirBSD|OpenBSD)
/usr/bin/tsort -r
;;
+ FreeBSD)
+ /usr/bin/tsort | tail -r
+ ;;
*)
/usr/bin/tsort | tac
;;