Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: .travis/prepare-prebuilt-v8.sh

Issue 29812567: Issue 6695 - allow to have prebuilt V8 for different nix plaforms locally (Closed) Base URL: https://github.com/adblockplus/libadblockplus@aed024f124d0f38dc6fd03f53ad13bdb3ce987dc
Patch Set: Created June 21, 2018, 9:23 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « .travis.yml ('k') | Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: .travis/prepare-prebuilt-v8.sh
diff --git a/.travis/prepare-prebuilt-v8.sh b/.travis/prepare-prebuilt-v8.sh
index 9c5a3d8df0f248af579201d81655f501b2129d68..cf8e5ae90bcf6c1123bf2a104d31cb3951a4616b 100644
--- a/.travis/prepare-prebuilt-v8.sh
+++ b/.travis/prepare-prebuilt-v8.sh
@@ -3,8 +3,10 @@
set -x
set -e
-wget ${URL_PREFIX}include.7z -O third_party/v8-include.7z
-7z x third_party/v8-include.7z -othird_party/prebuilt-v8
+if [[ ! -d "third_party/prebuilt-v8/include" ]]; then
+ wget ${URL_PREFIX}include.7z -O third_party/v8-include.7z
+ 7z x third_party/v8-include.7z -othird_party/prebuilt-v8
+fi
PREBUILT_V8_ARCHIVE=${TARGET_OS}-${TARGET_ARCH}-${Configuration}.tar.xz
@@ -17,4 +19,5 @@ fi
fi
wget ${URL_PREFIX}/${PREBUILT_V8_ARCHIVE} -O third_party/v8-prebuilt.tar.xz
-tar -xJf third_party/v8-prebuilt.tar.xz -C third_party/prebuilt-v8
+mkdir -p third_party/prebuilt-v8/${TARGET_OS}-${TARGET_ARCH}-${Configuration}
+tar -xJf third_party/v8-prebuilt.tar.xz -C third_party/prebuilt-v8/${TARGET_OS}-${TARGET_ARCH}-${Configuration}
« no previous file with comments | « .travis.yml ('k') | Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld