6 if [[ -z $VERSION ]]; then
7 echo >&2 'No version given as an argument'
11 mkdir chromium-checkout
17 "url": "https://chromium.googlesource.com/chromium/src.git",
25 git clone
--depth=1 https
://chromium.googlesource.com
/chromium
/tools
/depot_tools
26 export PATH
+=":$PWD/depot_tools" DEPOT_TOOLS_UPDATE
=0
27 export VPYTHON_BYPASS
='manually managed python not supported by chrome operations'
29 git clone
-b $VERSION --depth=2 https
://chromium.googlesource.com
/chromium
/src
30 gclient sync
--no-history --nohooks
31 src
/build
/util
/lastchange.py
-o src
/build
/util
/LASTCHANGE
32 src
/build
/util
/lastchange.py
-m GPU_LISTS_VERSION \
33 --revision-id-only --header src
/gpu
/config
/gpu_lists_version.h
34 src
/build
/util
/lastchange.py
-m SKIA_COMMIT_HASH \
35 -s src
/third_party
/skia
--header src
/skia
/ext
/skia_commit_hash.h
36 src
/build
/util
/lastchange.py \
37 -s src
/third_party
/dawn
--revision src
/gpu
/webgpu
/DAWN_VERSION
38 src
/tools
/update_pgo_profiles.py
--target=linux update \
39 --gs-url-base=chromium-optimization-profiles
/pgo_profiles
40 download_from_google_storage.py
--no_resume --extract --no_auth \
41 --bucket chromium-nodejs
-s src
/third_party
/node
/node_modules.
tar.gz.sha1
43 find src
/third_party
/jdk
/current
-type f
-delete
44 mv src ..
/chromium-
$VERSION