aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/include.sh
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-10-26 15:18:42 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-10-26 15:18:42 -0700
commitfc46e9f0e7bbab74ca92db1fe98a0ba4ff65a616 (patch)
tree9cbe4858a2dad0fb4fa7fc1e7701bef57f62e839 /scripts/include.sh
parenta5a32137ff0cb50356a50a44e87deadd0d40f220 (diff)
Fixed build
Diffstat (limited to 'scripts/include.sh')
-rwxr-xr-xscripts/include.sh/build-dep.sh18
1 files changed, 15 insertions, 3 deletions
diff --git a/scripts/include.sh/build-dep.sh b/scripts/include.sh/build-dep.sh
index 1af2a5c4..9e38fc9c 100755
--- a/scripts/include.sh/build-dep.sh
+++ b/scripts/include.sh/build-dep.sh
@@ -93,7 +93,13 @@ build_git_ios()
"Release-iphonesimulator/$library" \
-output "$name-$version/$name/lib/$library"
for dep in $embedded_deps ; do
- mv "$srcdir/$name/build-mac/$dep" "$name-$version"
+ if test -d "$srcdir/$name/build-mac/$dep" ; then
+ mv "$srcdir/$name/build-mac/$dep" "$name-$version"
+ elif test -d "$srcdir/$name/Externals/$dep" ; then
+ mv "$srcdir/$name/Externals/$dep" "$name-$version"
+ else
+ echo Dependency $dep not found
+ fi
done
echo "$rev"> "$name-$version/git-rev"
mkdir -p "$resultdir/$name"
@@ -174,7 +180,13 @@ build_git_osx()
mv Release/include "$name-$version/$name"
mv "Release/$library" "$name-$version/$name/lib"
for dep in $embedded_deps ; do
- mv "$srcdir/$name/build-mac/$dep" "$name-$version"
+ if test -d "$srcdir/$name/build-mac/$dep" ; then
+ mv "$srcdir/$name/build-mac/$dep" "$name-$version"
+ elif test -d "$srcdir/$name/Externals/$dep" ; then
+ mv "$srcdir/$name/Externals/$dep" "$name-$version"
+ else
+ echo Dependency $dep not found
+ fi
done
echo "$rev"> "$name-$version/git-rev"
mkdir -p "$resultdir/$name"
@@ -211,6 +223,6 @@ get_prebuilt_dep()
curl -O "$url/$name/$name-$version.zip"
unzip -q "$name-$version.zip"
rm -rf "$scriptpath/../Externals/$name"
- mv "$name-$version/$name" "$scriptpath/../Externals"
+ mv "$name-$version"/* "$scriptpath/../Externals"
rm -rf "$tempbuilddir"
}