Skip to content

Instantly share code, notes, and snippets.

@tpoechtrager
Created July 5, 2015 18:49
Show Gist options
  • Save tpoechtrager/37ee39e787680eff1c39 to your computer and use it in GitHub Desktop.
Save tpoechtrager/37ee39e787680eff1c39 to your computer and use it in GitHub Desktop.
diff --git a/build.sh b/build.sh
index b6954c8..f666b3f 100755
--- a/build.sh
+++ b/build.sh
@@ -163,7 +163,7 @@ fi
CCTOOLS="cctools-862-ld64-$LINKER_VERSION"
CCTOOLS_TARBALL=`ls $TARBALL_DIR/$CCTOOLS*.tar.* | head -n1`
-CCTOOLS_REVHASH=`echo "$CCTOOLS_TARBALL" head -n1 | tr '_' ' ' | tr '.' ' ' | awk '{print $3}'`
+CCTOOLS_REVHASH=`echo "$CCTOOLS_TARBALL" | tr '_' ' ' | tr '.' ' ' | awk '{print $3}'`
if [ ! -f "have_cctools_${CCTOOLS_REVHASH}_$TARGET" ]; then
@@ -231,14 +231,9 @@ fi
fi
# XAR END
-if [ ! -f "have_cctools_$TARGET" ]; then
-
touch "have_cctools_${CCTOOLS_REVHASH}_$TARGET"
-
echo ""
-fi # HAVE_CCTOOLS
-
set +e
ls $TARBALL_DIR/MacOSX$SDK_VERSION* &>/dev/null
while [ $? -ne 0 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment