summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-06-11 07:40:16 +0000
committer Eric Hameleers <alien@slackware.com>2015-06-11 07:40:16 +0000
commitd4fc4095c144b86762effa0b0227ef7fa594c644 (patch)
tree9af74a81cd6d0249cea4fdea91587e34b8d90f68
parent1d95f3b80912f25b7fb907496b4ee47d7ac39b49 (diff)
downloadasb-d4fc4095c144b86762effa0b0227ef7fa594c644.tar.gz
asb-d4fc4095c144b86762effa0b0227ef7fa594c644.tar.xz
Updated the checkout process for release 43.0.2357.124.
-rw-r--r--chromium/build/README37
1 files changed, 22 insertions, 15 deletions
diff --git a/chromium/build/README b/chromium/build/README
index 0c652e3a..2343d721 100644
--- a/chromium/build/README
+++ b/chromium/build/README
@@ -1,9 +1,14 @@
-#
+#!/bin/sh
# Checking out the sources of an official chromium release:
#
-# In a working directory, you create three directories:
+# See also https://github.com/zcbenz/chromium-source-tarball where this is
+# fully automated, but the resulting tarballs are much bigger because they
+# contain sources specific to windows and mac too.
+#
+# In a working directory (~/chromium_src by default), three directories will
+# be created:
# - depot_tools: this contains all the tools needed for creating the tarball
-# - checkout: here over a GB of source will be checked out
+# - checkout: here over 16 GB of chromium source code will be checked out.
# - output: here the chromium-${RELEASE}.tar.xz source tarball will be created.
# Note: if you want to find out the recommended version for the native_client
@@ -16,11 +21,10 @@
# Some variables:
-WORKING_DIR="${HOME}/chromium_src"
+RELEASE=${RELEASE:-"43.0.2357.124"}
+WORKING_DIR=${WORKING_DIR:-"${HOME}/chromium_src"}
-CHROMIUM_REL="32.0.1700.77"
DEPOT_TOOLS_REPO="https://chromium.googlesource.com/chromium/tools/depot_tools.git"
-RELEASES_URL="https://src.chromium.org/chrome/releases"
# The actual work (takes a while to checkout 1 GB of source and pack it up:
@@ -31,19 +35,22 @@ cd ${WORKING_DIR}
git clone ${DEPOT_TOOLS_REPO}
# Check out the sources:
-mkdir ckeckout
+mkdir -p checkout
cd checkout
-PATH="../depot_tools/:$PATH" gclient config ${RELEASES_URL}/${CHROMIUM_REL}
-# At this moment, your config will have been written to a file '.gclient'
-PATH="../depot_tools/:$PATH" gclient sync 2>&1 | tee ../sync.log
-# The sync will download everything, based on what it found in this file:
-# ${CHROMIUM_REL}/DEPS
-PATH="../depot_tools/:$PATH" gclient sync 2>&1 | tee ../sync.2.log
+PATH="../depot_tools/:$PATH" fetch --nohooks chromium --target_os=linux
+PATH="../depot_tools/:$PATH" gclient sync --force --nohooks --with_branch_heads
+
+# Expose the source for the release tag we want:
+cd src
+ git fetch origin --tags
+ git reset --hard ${RELEASE}
+ PATH="../../depot_tools/:$PATH" gclient sync --force --nohooks --with_branch_heads
+cd -
# Pack up the source tarball:
mkdir ../output
-python src/tools/export_tarball/export_tarball.py --remove-nonessential-files ../output/chromium-${CHROMIUM_REL}
+python src/tools/export_tarball/export_tarball.py --remove-nonessential-files ../output/chromium-${RELEASE}
echo ""
-echo "Resulting source tarball is: ${WORKING_DIR}/output/chromium-${CHROMIUM_REL}.tar.xz"
+echo "Resulting source tarball is: ${WORKING_DIR}/output/chromium-${RELEASE}.tar.xz"
echo ""