[darwinbuild-changes] [368] trunk/darwinbuild/installXcode
source_changes at macosforge.org
source_changes at macosforge.org
Thu May 1 18:51:09 PDT 2008
Revision: 368
http://trac.macosforge.org/projects/darwinbuild/changeset/368
Author: wsiegrist at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20080501/62c4dd85/attachment.html
More information about the darwinbuild-changes
mailing list