summaryrefslogtreecommitdiffstats
path: root/chromium-dev
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2014-01-15 20:20:24 +0000
committer Eric Hameleers <alien@slackware.com>2014-01-15 20:20:24 +0000
commitdd9278c84b4b36ab41bd78d38a4f420867bcc17b (patch)
treecb25af5502f1f1c93ff96646109ff7cdec6c61c7 /chromium-dev
parentdf7a3bc1b23f99dc572c98a04ca708e44d144d1f (diff)
downloadasb-dd9278c84b4b36ab41bd78d38a4f420867bcc17b.tar.gz
asb-dd9278c84b4b36ab41bd78d38a4f420867bcc17b.tar.xz
Initial revision
Diffstat (limited to 'chromium-dev')
-rw-r--r--chromium-dev/build/README41
1 files changed, 41 insertions, 0 deletions
diff --git a/chromium-dev/build/README b/chromium-dev/build/README
new file mode 100644
index 00000000..5879a72a
--- /dev/null
+++ b/chromium-dev/build/README
@@ -0,0 +1,41 @@
+#
+# Checking out the sources of an official chromium release:
+#
+# In a working directory, you'' create three directories:
+# - depot_tools: this contains all the tools needed for creating the tarball
+# - checkout: here over a GB of source will be checked out
+# - output: here the chromium-${RELEASE}.tar.xz source tarball will be created.
+
+# Some variables:
+
+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:
+
+mkdir -p ${WORKING_DIR}
+cd ${WORKING_DIR}
+
+# Clone the tools:
+git clone ${DEPOT_TOOLS_REPO}
+
+# Check out the sources:
+mkdir ckeckout
+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
+
+# Pack up the source tarball:
+mkdir ../output
+python src/tools/export_tarball/export_tarball.py --remove-nonessential-files ../output/chromium-${CHROMIUM_REL}
+
+echo ""
+echo "Resulting source tarball is: ${WORKING_DIR}/output/chromium-${CHROMIUM_REL}.tar.xz"
+echo ""