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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « .travis.yml ('k') | Makefile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2 2
3 set -x 3 set -x
4 set -e 4 set -e
5 5
6 wget ${URL_PREFIX}include.7z -O third_party/v8-include.7z 6 if [[ ! -d "third_party/prebuilt-v8/include" ]]; then
7 7z x third_party/v8-include.7z -othird_party/prebuilt-v8 7 wget ${URL_PREFIX}include.7z -O third_party/v8-include.7z
8 7z x third_party/v8-include.7z -othird_party/prebuilt-v8
9 fi
8 10
9 PREBUILT_V8_ARCHIVE=${TARGET_OS}-${TARGET_ARCH}-${Configuration}.tar.xz 11 PREBUILT_V8_ARCHIVE=${TARGET_OS}-${TARGET_ARCH}-${Configuration}.tar.xz
10 12
11 if [[ "${TARGET_OS}" != "android" ]]; then 13 if [[ "${TARGET_OS}" != "android" ]]; then
12 if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then 14 if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
13 PREBUILT_V8_ARCHIVE=osx-x64-debug.tar.xz 15 PREBUILT_V8_ARCHIVE=osx-x64-debug.tar.xz
14 elif [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then 16 elif [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
15 PREBUILT_V8_ARCHIVE=u14.04-x64-debug.tar.xz 17 PREBUILT_V8_ARCHIVE=u14.04-x64-debug.tar.xz
16 fi 18 fi
17 fi 19 fi
18 20
19 wget ${URL_PREFIX}/${PREBUILT_V8_ARCHIVE} -O third_party/v8-prebuilt.tar.xz 21 wget ${URL_PREFIX}/${PREBUILT_V8_ARCHIVE} -O third_party/v8-prebuilt.tar.xz
20 tar -xJf third_party/v8-prebuilt.tar.xz -C third_party/prebuilt-v8 22 mkdir -p third_party/prebuilt-v8/${TARGET_OS}-${TARGET_ARCH}-${Configuration}
23 tar -xJf third_party/v8-prebuilt.tar.xz -C third_party/prebuilt-v8/${TARGET_OS}- ${TARGET_ARCH}-${Configuration}
OLDNEW
« no previous file with comments | « .travis.yml ('k') | Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld