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

Side by Side Diff: tools/clang/scripts/package.sh

Issue 211213004: clang roll 198389:202554 reloaded (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes for 10.6 support Created 6 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « tools/clang/plugins/ChromeClassTester.cpp ('k') | tools/clang/scripts/plugin_flags.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This script will check out llvm and clang, and then package the results up 6 # This script will check out llvm and clang, and then package the results up
7 # to a tgz file. 7 # to a tgz file.
8 8
9 gcc_toolchain= 9 gcc_toolchain=
10 10
(...skipping 30 matching lines...) Expand all
41 exit 1 41 exit 1
42 ;; 42 ;;
43 esac 43 esac
44 shift 44 shift
45 done 45 done
46 46
47 47
48 THIS_DIR="$(dirname "${0}")" 48 THIS_DIR="$(dirname "${0}")"
49 LLVM_DIR="${THIS_DIR}/../../../third_party/llvm" 49 LLVM_DIR="${THIS_DIR}/../../../third_party/llvm"
50 LLVM_BOOTSTRAP_DIR="${THIS_DIR}/../../../third_party/llvm-bootstrap" 50 LLVM_BOOTSTRAP_DIR="${THIS_DIR}/../../../third_party/llvm-bootstrap"
51 LLVM_BOOTSTRAP_INSTALL_DIR="${LLVM_DIR}/../llvm-bootstrap-install"
51 LLVM_BUILD_DIR="${THIS_DIR}/../../../third_party/llvm-build" 52 LLVM_BUILD_DIR="${THIS_DIR}/../../../third_party/llvm-build"
52 LLVM_BIN_DIR="${LLVM_BUILD_DIR}/Release+Asserts/bin" 53 LLVM_BIN_DIR="${LLVM_BUILD_DIR}/Release+Asserts/bin"
53 LLVM_LIB_DIR="${LLVM_BUILD_DIR}/Release+Asserts/lib" 54 LLVM_LIB_DIR="${LLVM_BUILD_DIR}/Release+Asserts/lib"
54 55
55 echo "Diff in llvm:" | tee buildlog.txt 56 echo "Diff in llvm:" | tee buildlog.txt
56 svn stat "${LLVM_DIR}" 2>&1 | tee -a buildlog.txt 57 svn stat "${LLVM_DIR}" 2>&1 | tee -a buildlog.txt
57 svn diff "${LLVM_DIR}" 2>&1 | tee -a buildlog.txt 58 svn diff "${LLVM_DIR}" 2>&1 | tee -a buildlog.txt
58 echo "Diff in llvm/tools/clang:" | tee -a buildlog.txt 59 echo "Diff in llvm/tools/clang:" | tee -a buildlog.txt
59 svn stat "${LLVM_DIR}/tools/clang" 2>&1 | tee -a buildlog.txt 60 svn stat "${LLVM_DIR}/tools/clang" 2>&1 | tee -a buildlog.txt
60 svn diff "${LLVM_DIR}/tools/clang" 2>&1 | tee -a buildlog.txt 61 svn diff "${LLVM_DIR}/tools/clang" 2>&1 | tee -a buildlog.txt
61 echo "Diff in llvm/projects/compiler-rt:" | tee -a buildlog.txt 62 echo "Diff in llvm/projects/compiler-rt:" | tee -a buildlog.txt
62 svn stat "${LLVM_DIR}/projects/compiler-rt" 2>&1 | tee -a buildlog.txt 63 svn stat "${LLVM_DIR}/projects/compiler-rt" 2>&1 | tee -a buildlog.txt
63 svn diff "${LLVM_DIR}/projects/compiler-rt" 2>&1 | tee -a buildlog.txt 64 svn diff "${LLVM_DIR}/projects/compiler-rt" 2>&1 | tee -a buildlog.txt
64 65
65 echo "Starting build" | tee -a buildlog.txt 66 echo "Starting build" | tee -a buildlog.txt
66 67
67 set -exu 68 set -exu
68 69
69 # Do a clobber build. 70 # Do a clobber build.
70 rm -rf "${LLVM_BOOTSTRAP_DIR}" 71 rm -rf "${LLVM_BOOTSTRAP_DIR}"
72 rm -rf "${LLVM_BOOTSTRAP_INSTALL_DIR}"
71 rm -rf "${LLVM_BUILD_DIR}" 73 rm -rf "${LLVM_BUILD_DIR}"
72 extra_flags= 74 extra_flags=
73 if [[ -n "${gcc_toolchain}" ]]; then 75 if [[ -n "${gcc_toolchain}" ]]; then
74 extra_flags="--gcc-toolchain ${gcc_toolchain}" 76 extra_flags="--gcc-toolchain ${gcc_toolchain}"
75 fi 77 fi
76 "${THIS_DIR}"/update.sh --bootstrap --force-local-build --run-tests \ 78 "${THIS_DIR}"/update.sh --bootstrap --force-local-build --run-tests \
77 ${extra_flags} 2>&1 | tee -a buildlog.txt 79 ${extra_flags} 2>&1 | tee -a buildlog.txt
78 80
79 R=$("${LLVM_BIN_DIR}/clang" --version | \ 81 R=$("${LLVM_BIN_DIR}/clang" --version | \
80 sed -ne 's/clang version .*(trunk \([0-9]*\))/\1/p') 82 sed -ne 's/clang version .*(trunk \([0-9]*\))/\1/p')
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 148
147 if [ "$(uname -s)" = "Darwin" ]; then 149 if [ "$(uname -s)" = "Darwin" ]; then
148 PLATFORM=Mac 150 PLATFORM=Mac
149 else 151 else
150 PLATFORM=Linux_x64 152 PLATFORM=Linux_x64
151 fi 153 fi
152 154
153 echo To upload, run: 155 echo To upload, run:
154 echo gsutil cp -a public-read $PDIR.tgz \ 156 echo gsutil cp -a public-read $PDIR.tgz \
155 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz 157 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz
OLDNEW
« no previous file with comments | « tools/clang/plugins/ChromeClassTester.cpp ('k') | tools/clang/scripts/plugin_flags.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698