[368] trunk/darwinbuild/installXcode
Revision: 368 http://trac.macosforge.org/projects/darwinbuild/changeset/368 Author: wsiegrist@apple.com Date: 2008-05-01 18:51:08 -0700 (Thu, 01 May 2008) Log Message: ----------- make version detection more future proof Modified Paths: -------------- trunk/darwinbuild/installXcode Modified: trunk/darwinbuild/installXcode =================================================================== --- trunk/darwinbuild/installXcode 2008-04-24 21:32:20 UTC (rev 367) +++ trunk/darwinbuild/installXcode 2008-05-02 01:51:08 UTC (rev 368) @@ -1,13 +1,13 @@ -#!/bin/sh +#!/bin/bash -BINDIR=/usr/local/share/darwinbuild/ +BINDIR=/usr/local/share/darwinbuild BROOT=$1 -VER=$(/usr/bin/xcodebuild -version | cut -d "-" -f 2 | cut -d ";" -f 1) +VER=$(/usr/bin/xcodebuild -version | cut -d "-" -f 2 | cut -d ";" -f 1 | tail -1 | cut -d "." -f 1) -if [ "$VER" == "921.0" ]; +if [ "$VER" -gt "920" ]; then "$BINDIR/installXcode3" "$BROOT"; else "$BINDIR/installXcode2" "$BROOT"; -fi \ No newline at end of file +fi
participants (1)
-
source_changes@macosforge.org