This commit is contained in:
Thomas Pöchtrager 2015-07-05 21:04:15 +02:00
parent 56eba88a9b
commit d6f4510aec

View File

@ -153,8 +153,8 @@ else
fi fi
CCTOOLS="cctools-862-ld64-$LINKER_VERSION" CCTOOLS="cctools-862-ld64-$LINKER_VERSION"
CCTOOLS_TARBALL=`ls $TARBALL_DIR/$CCTOOLS*.tar.* | head -n1` CCTOOLS_TARBALL=$(ls $TARBALL_DIR/$CCTOOLS*.tar.* | head -n1)
CCTOOLS_REVHASH=`echo "$CCTOOLS_TARBALL" head -n1 | tr '_' ' ' | tr '.' ' ' | awk '{print $3}'` CCTOOLS_REVHASH=$(echo $(basename "$CCTOOLS_TARBALL") | tr '_' ' ' | tr '.' ' ' | awk '{print $3}')
if [ ! -f "have_cctools_${CCTOOLS_REVHASH}_$TARGET" ]; then if [ ! -f "have_cctools_${CCTOOLS_REVHASH}_$TARGET" ]; then
@ -235,7 +235,7 @@ fi
fi fi
# XAR END # XAR END
if [ ! -f "have_cctools_$TARGET" ]; then if [ ! -f "have_cctools_${CCTOOLS_REVHASH}_$TARGET" ]; then
function check_cctools() function check_cctools()
{ {