-case "$(uname)" in
- Linux)
- echo "Found Linux OS."
- ;;
- Darwin)
- echo "Found Darwin OS."
-
- # darwin dependencies
- DARWINDEPS="wget"
-
- echo "Installing dependencies ..."
- if ! which brew > /dev/null; then
- echo "Homebrew not installed."
- else
- brew install ${DARWINDEPS} | (grep -v '^Warning: Formula already installed: ' || true)
- fi
+# normalized fetching with whatever we can find
+if which fetch > /dev/null; then
+ FETCHCMD="fetch -p"
+elif which wget > /dev/null; then
+ FETCHCMD=wget
+elif which curl > /dev/null; then
+ FETCHCMD="curl -O"
+else
+ FETCHCMD=ftp # the only HTTP client on some BSD
+fi