archrelease: copy trunk to extra-x86_64
[arch-packages.git] / chromium / trunk / fetch-chromium-release
blob0ada8ae2d4b2913f45681aa772be6c1ec4558215
1 #!/bin/bash
3 set -e
5 readonly VERSION=$1
6 if [[ -z $VERSION ]]; then
7 echo >&2 'No version given as an argument'
8 exit 1
9 fi
11 mkdir chromium-checkout
12 cd chromium-checkout
13 cat >.gclient <<EOF
14 solutions = [
16 "name": "src",
17 "url": "https://chromium.googlesource.com/chromium/src.git",
18 "managed": False,
19 "custom_deps": {},
20 "custom_vars": {},
23 EOF
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