From f24d37eff23a5d1d81c54964a0fcc7388c4670f0 Mon Sep 17 00:00:00 2001 From: Bochun Bai Date: Thu, 24 Dec 2015 15:31:44 -0800 Subject: [PATCH] Default location of install --- build_libcurl_dist.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_libcurl_dist.sh b/build_libcurl_dist.sh index 79de5c4..a049362 100755 --- a/build_libcurl_dist.sh +++ b/build_libcurl_dist.sh @@ -1,7 +1,8 @@ #!/bin/bash export DEVROOT=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain -DIST_DIR=${HOME}/Desktop/libcurl-ios-dist +DFT_DIST_DIR=${HOME}/Desktop/libcurl-ios-dist +DIST_DIR=${DIST_DIR:-$DFT_DIST_DIR} function check_curl_ver() { echo "#include \"include/curl/curlver.h\" @@ -56,7 +57,6 @@ cp -r ${TMP_DIR}/armv7s/include ${TMP_DIR}/ curl -O https://raw.githubusercontent.com/sinofool/build-libcurl-ios/master/patch-include.patch patch ${TMP_DIR}/include/curl/curlbuild.h < patch-include.patch -rm -rf ${DIST_DIR} -mkdir ${DIST_DIR} +mkdir -p ${DIST_DIR} cp -r ${TMP_DIR}/include ${TMP_DIR}/lib ${DIST_DIR}