Changeset 1968


Ignore:
Timestamp:
Oct 3, 2012, 1:07:07 PM (5 years ago)
Author:
sam
Message:

build: improve the run-bitten script so that it runs on Linux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build/run-bitten.sh

    • Property svn:executable set to *
    r1965 r1968  
    3030esac
    3131append "family = $family"
    32 append "token = $RANDOM"
     32# This random token prevents HTTP conflicts when several instances
     33# are run from the same machine.
     34append "token = $$$RANDOM"
    3335append ""
    3436
     
    4850  i*86) processor="i386" ;;
    4951esac
    50 # Windows defines a lot of crazy shit,
     52# Windows defines a lot of crazy shit, try to make sense of it
    5153case "$PROCESSOR_ARCHITECTURE" in
    5254  amd64|AMD64) processor="amd64" ;;
     
    100102
    101103append "[ps3sdk]"
     104# Try to "detect" the SNC compiler on Windows
    102105if [ -n "$SN_PS3_PATH" ]; then
    103106  append "version = 410"
    104107fi
     108# The setup is easier to detect on Linux
     109if [ -f "$CELLSDK/version-SDK" ]; then
     110  append "version = $(cat "$CELLSDK/version-SDK")"
     111fi
    105112append ""
     113
     114#
     115# mingw32 / mingw-w64
     116#
     117
     118append "[mingw64]"
     119if x86_64-w64-mingw32-g++ --version >/dev/null 2>&1; then
     120  append "version = $(x86_64-w64-mingw32-g++ --version | sed -ne 's/.*g++ *([^)]*) *//p')"
     121fi
     122append ""
     123
     124append "[mingw32]"
     125if i686-w64-mingw32-g++ --version >/dev/null 2>&1; then
     126  append "version = $(i686-w64-mingw32-g++ --version | sed -ne 's/.*g++ *([^)]*) *//p')"
     127fi
     128append ""
     129
     130#
     131# Show what we just did here
     132#
     133
     134cat "$conffile"
    106135
    107136#
Note: See TracChangeset for help on using the changeset viewer.