Browse Source

build: do not try to advertise a bitten config for Android, NaCl or the

Raspi if running on Windows.
legacy
Sam Hocevar sam 12 years ago
parent
commit
5c60fe42a0
1 changed files with 31 additions and 25 deletions
  1. +31
    -25
      build/run-bitten.sh

+ 31
- 25
build/run-bitten.sh View File

@@ -2,12 +2,12 @@


conffile="`mktemp 2>/dev/null`" conffile="`mktemp 2>/dev/null`"
if [ "$conffile" = "" ]; then if [ "$conffile" = "" ]; then
conffile="`mktemp -q /tmp/lol-bitten-XXXXXX`"
conffile="`mktemp -q /tmp/lol-bitten-XXXXXX`"
fi fi
url="http://lol.zoy.org/builds" url="http://lol.zoy.org/builds"


append() { append() {
echo "$*" >> "$conffile"
echo "$*" >> "$conffile"
} }


# #
@@ -80,11 +80,11 @@ append ""
# FIXME: we also need to check for the Visual Studio SDK # FIXME: we also need to check for the Visual Studio SDK
append "[msvc]" append "[msvc]"
if [ -n "$VS100COMNTOOLS" ]; then if [ -n "$VS100COMNTOOLS" ]; then
append "version = 10"
append "version = 10"
elif [ -n "$VS110COMNTOOLS" ]; then elif [ -n "$VS110COMNTOOLS" ]; then
append "version = 11"
append "version = 11"
elif [ -n "$VS90COMNTOOLS" ]; then elif [ -n "$VS90COMNTOOLS" ]; then
append "version = 9"
append "version = 9"
fi fi
append "" append ""


@@ -94,8 +94,8 @@ append ""


append "[xdk]" append "[xdk]"
if [ -n "$XEDK" ]; then if [ -n "$XEDK" ]; then
# FIXME: we don't know how to check the version
append "version = 2.0.20675.0"
# FIXME: we don't know how to check the version
append "version = 2.0.20675.0"
fi fi
append "" append ""


@@ -106,11 +106,11 @@ append ""
append "[ps3sdk]" append "[ps3sdk]"
# Try to "detect" the SNC compiler on Windows # Try to "detect" the SNC compiler on Windows
if [ -n "$SN_PS3_PATH" ]; then if [ -n "$SN_PS3_PATH" ]; then
append "version = 410"
append "version = 410"
fi fi
# The setup is easier to detect on Linux # The setup is easier to detect on Linux
if [ -f "$CELLSDK/version-SDK" ]; then if [ -f "$CELLSDK/version-SDK" ]; then
append "version = $(cat "$CELLSDK/version-SDK")"
append "version = $(cat "$CELLSDK/version-SDK")"
fi fi
append "" append ""


@@ -120,13 +120,13 @@ append ""


append "[mingw64]" append "[mingw64]"
if x86_64-w64-mingw32-g++ --version >/dev/null 2>&1; then if x86_64-w64-mingw32-g++ --version >/dev/null 2>&1; then
append "version = $(x86_64-w64-mingw32-g++ --version | sed -ne 's/.*g++ *([^)]*) *//p')"
append "version = $(x86_64-w64-mingw32-g++ --version | sed -ne 's/.*g++ *([^)]*) *//p')"
fi fi
append "" append ""


append "[mingw32]" append "[mingw32]"
if i686-w64-mingw32-g++ --version >/dev/null 2>&1; then if i686-w64-mingw32-g++ --version >/dev/null 2>&1; then
append "version = $(i686-w64-mingw32-g++ --version | sed -ne 's/.*g++ *([^)]*) *//p')"
append "version = $(i686-w64-mingw32-g++ --version | sed -ne 's/.*g++ *([^)]*) *//p')"
fi fi
append "" append ""


@@ -135,8 +135,10 @@ append ""
# #


append "[ndk]" append "[ndk]"
if [ -f "$ANDROID_NDK_ROOT/RELEASE.TXT" ]; then
append "version = $(cat "$ANDROID_NDK_ROOT/RELEASE.TXT")"
if [ "$family" != "windows" ]; then
if [ -f "$ANDROID_NDK_ROOT/RELEASE.TXT" ]; then
append "version = $(cat "$ANDROID_NDK_ROOT/RELEASE.TXT")"
fi
fi fi
append "" append ""


@@ -145,17 +147,19 @@ append ""
# #


append "[pepper]" append "[pepper]"
if [ -d "$NACL_SDK_ROOT" ]; then
pepper_version=0
for dir in "$NACL_SDK_ROOT/pepper_"*; do
new_version="$(echo "$dir" | sed 's/.*_//')"
if [ "$new_version" -gt "$pepper_version" ]; then
pepper_version="$new_version"
if [ "$family" != "windows" ]; then
if [ -d "$NACL_SDK_ROOT" ]; then
pepper_version=0
for dir in "$NACL_SDK_ROOT/pepper_"*; do
new_version="$(echo "$dir" | sed 's/.*_//')"
if [ "$new_version" -gt "$pepper_version" ]; then
pepper_version="$new_version"
fi
done
if [ "$pepper_version" != 0 ]; then
append "version = $pepper_version"
fi
fi fi
done
if [ "$pepper_version" != 0 ]; then
append "version = $pepper_version"
fi
fi fi
append "" append ""


@@ -164,8 +168,10 @@ append ""
# #


append "[raspi]" append "[raspi]"
if [ -d "$RASPI_SDK_ROOT/tools" ]; then
append "version = 0"
if [ "$family" != "windows" ]; then
if [ -d "$RASPI_SDK_ROOT/tools" ]; then
append "version = 0"
fi
fi fi
append "" append ""




Loading…
Cancel
Save