From 02238933150c99c5a75c22eeb939b1854ced5023 Mon Sep 17 00:00:00 2001 From: Engin Kurutepe Date: Tue, 15 Mar 2016 18:13:49 +0100 Subject: [PATCH] generate Cartfile using the local path --- build.sh | 3 +++ examples/CarthageBuildTest/Cartfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index e916181e30..1f3884c944 100755 --- a/build.sh +++ b/build.sh @@ -48,7 +48,10 @@ if [ "$MODE" = "examples" ]; then build elif [ -f "${example}/Cartfile" ]; then echo "Using Carthage" + local_repo=`pwd` cd $example + + echo "git \"file://${local_repo}\" \"master\"" > "Cartfile" carthage update --platform iOS xctool \ diff --git a/examples/CarthageBuildTest/Cartfile b/examples/CarthageBuildTest/Cartfile index aa14143b00..75ef551216 100644 --- a/examples/CarthageBuildTest/Cartfile +++ b/examples/CarthageBuildTest/Cartfile @@ -1 +1 @@ -github "facebook/AsyncDisplayKit" "master" +git "file:///build.sh/will/put/local/absolute/path/here" "master"