Remove use of bashisms since we use #!/bin/sh. This should help supporting solaris.

Added sunos to the list of platforms, but it needs more work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24922 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2008-04-12 02:40:10 +00:00
parent 77599d6d06
commit a559f87af8
2 changed files with 15 additions and 13 deletions
Vendored
+6 -4
View File
@@ -187,9 +187,9 @@ get_build_tool_path()
if [ -f "$path" ]; then
# get absolute path
local oldPwd=$(pwd)
cd $(dirname "$path")
path="$(pwd)/$(basename "$path")"
local oldPwd="`pwd`"
cd "`dirname "$path"`"
path="`pwd`/`basename "$path"`"
cd $oldPwd
else
which "$path" &> /dev/null || {
@@ -232,7 +232,8 @@ buildCrossTools=
buildCrossToolsScript="$sourceDir/build/scripts/build_cross_tools"
buildCrossToolsMachine=
export haikuRequiredLegacyGCCVersion="2.95.3-haiku-080323"
haikuRequiredLegacyGCCVersion="2.95.3-haiku-080323"
export haikuRequiredLegacyGCCVersion
# version of legacy gcc required to build haiku
set_default_value HAIKU_AR ar
@@ -304,6 +305,7 @@ case "${platform}" in
FreeBSD) buildPlatform=freebsd ;;
Haiku) buildPlatform=haiku_host ;;
Linux) buildPlatform=linux ;;
SunOS) buildPlatform=sunos ;;
*) echo Unsupported platform: ${platform}
exit 1 ;;
esac