Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Side by Side Diff: bin/sync-and-gyp

Issue 1427183003: bin/sync-and-gyp: gclient hackery (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: 2015-10-30 (Friday) 18:04:29 EDT Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright 2015 Google Inc. 3 # Copyright 2015 Google Inc.
4 # 4 #
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 7
8 # This script will update Skia's dependenciess as necessary and run 8 # This script will update Skia's dependenciess as necessary and run
9 # gyp if needed. 9 # gyp if needed.
10 10
11 # Example usage (assumes Posix-standard shell, git installed): 11 # Example usage (assumes Posix-standard shell, git installed):
12 # 12 #
13 # git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git 13 # git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
14 # export PATH="${PWD}/depot_tools:${PATH}" 14 # export PATH="${PWD}/depot_tools:${PATH}"
15 # git clone https://skia.googlesource.com/skia 15 # git clone https://skia.googlesource.com/skia
16 # cd skia 16 # cd skia
17 # bin/sync-and-gyp && ninja -C out/Debug 17 # bin/sync-and-gyp && ninja -C out/Debug
18 # out/Debug/dm 18 # out/Debug/dm
19 # 19 #
20 # Once changes are made to DEPS or gyp/ or the source, recompile Skia with: 20 # Once changes are made to DEPS or gyp/ or the source, recompile Skia with:
21 # 21 #
22 # ${skiadir}/bin/sync-and-gyp && ninja -C ${skiadir}/out/Debug 22 # ${skiadir}/bin/sync-and-gyp && ninja -C ${skiadir}/out/Debug
23 23
24 cd "$(dirname "$0")/.." 24 cd "$(dirname "$0")/.."
25 25
26 if ! [ -f .gclient ] ; then 26 if ! [ -f .gclient ] ; then
27 gclient config --name . --unmanaged 'https://skia.googlesource.com/skia' 27 gclient config --unmanaged 'https://skia.googlesource.com/skia'
28 printf ',s/"skia"/"."/\nwq\n' | ed .gclient
mtklein 2015/11/01 22:20:40 Why not sed?
28 fi 29 fi
29 30
30 if ! [ -f DEPS ]; then 31 if ! [ -f DEPS ]; then
31 echo DEPS file missing >&2 32 echo DEPS file missing >&2
32 exit 1 33 exit 1
33 fi 34 fi
34 35
35 if [ "$(git hash-object DEPS)" != "$(git config sync-deps.last)" ] ; then 36 if [ "$(git hash-object DEPS)" != "$(git config sync-deps.last)" ] ; then
36 gclient sync || exit 37 gclient sync || exit
37 git config sync-deps.last "$(git hash-object DEPS)" 38 git config sync-deps.last "$(git hash-object DEPS)"
(...skipping 12 matching lines...) Expand all
50 } | git hash-object --stdin 51 } | git hash-object --stdin
51 } 52 }
52 53
53 : ${SKIA_OUT:=out} 54 : ${SKIA_OUT:=out}
54 GYP_HASH=$(gyp_hasher) 55 GYP_HASH=$(gyp_hasher)
55 HASH_PATH="${SKIA_OUT}/gyp_hash" 56 HASH_PATH="${SKIA_OUT}/gyp_hash"
56 if [ "$GYP_HASH" != "$(catifexists "$HASH_PATH")" ]; then 57 if [ "$GYP_HASH" != "$(catifexists "$HASH_PATH")" ]; then
57 python ./gyp_skia || exit 58 python ./gyp_skia || exit
58 echo "$GYP_HASH" > "$HASH_PATH" 59 echo "$GYP_HASH" > "$HASH_PATH"
59 fi 60 fi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698