Skip the Chromium tarball when syncing for the first time

It's no faster than just syncing straight from Subversion for me.
This commit is contained in:
Adam Roben 2013-02-20 15:40:26 -05:00
Родитель ab514ea2b6
Коммит fd95fa0a3a
4 изменённых файлов: 28 добавлений и 20 удалений

Просмотреть файл

@ -17,25 +17,8 @@ source VERSION
export PATH="${VENDOR_DIR}/depot_tools:${PATH}" export PATH="${VENDOR_DIR}/depot_tools:${PATH}"
if [ ! -d "${CHROMIUM_DIR}" ]; then cd "${CHROMIUM_DIR}"
mkdir -p "$(dirname "${CHROMIUM_DIR}")" gclient sync --revision src@${CHROMIUM_REVISION}
CHROMIUM_TARBALL_BASE_URL="http://chromium-browser-source.commondatastorage.googleapis.com/"
CHROMIUM_TARBALL_FILENAME=$(curl --silent "${CHROMIUM_TARBALL_BASE_URL}chromium_tarball.html" | grep 'href=' | sed -E -e 's/.*href="([^"]+)".*/\1/')
TEMP_DIR=$(mktemp -d -t prebuilt-chromium-bootstrap)
trap "rm -rf \"${TEMP_DIR}\"" EXIT
announce "Downloading Chromium tarball..."
curl "${CHROMIUM_TARBALL_BASE_URL}${CHROMIUM_TARBALL_FILENAME}" | tar -xz -C "${TEMP_DIR}"
mv "${TEMP_DIR}/home/src_tarball/tarball/chromium" "${CHROMIUM_DIR}"
cd "${CHROMIUM_DIR}/src"
gclient sync --force --revision src@${CHROMIUM_REVISION}
else
cd "${CHROMIUM_DIR}/src"
gclient sync --revision src@${CHROMIUM_REVISION}
fi
export GYP_GENERATORS=ninja export GYP_GENERATORS=ninja
cd "${SOURCE_ROOT}" cd "${SOURCE_ROOT}"

1
vendor/.gitignore поставляемый
Просмотреть файл

@ -1 +0,0 @@
/chromium/

24
vendor/chromium/.gclient поставляемый Normal file
Просмотреть файл

@ -0,0 +1,24 @@
# An element of this array (a "solution") describes a repository directory
# that will be checked out into your working copy. Each solution may
# optionally define additional dependencies (via its DEPS file) to be
# checked out alongside the solution's directory. A solution may also
# specify custom dependencies (via the "custom_deps" property) that
# override or augment the dependencies specified by the DEPS file.
solutions = [
{ "name" : "src",
"url" : "http://src.chromium.org/svn/trunk/src",
"custom_deps" : {
# To use the trunk of a component instead of what's in DEPS:
#"component": "https://svnserver/component/trunk/",
# To exclude a component from your working copy:
#"data/really_large_component": None,
"src/third_party/WebKit/LayoutTests": None,
"src/chrome_frame/tools/test/reference_build/chrome_win": None,
"src/chrome/test/data/perf/canvas_bench": None,
"src/chrome/test/data/perf/frame_rate/content": None,
"src/chrome/tools/test/reference_build/chrome_mac": None,
"src/chrome/tools/test/reference_build/chrome_win": None,
"src/chrome/tools/test/reference_build/chrome_linux": None,
}
}
]

2
vendor/chromium/.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1,2 @@
/src/
/.gclient_entries