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

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

Issue 453513004: Roll Clang 214024:216630 (+216684) and switch to CMake (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, fix blink-gc plugin flags, disable -Wundefined-bool-conversion while testing Created 6 years, 4 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
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 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, build a full package 6 # This script will check out llvm and clang, build a full package
7 # with the latest plugin revisions and then repackage an existing 7 # with the latest plugin revisions and then repackage an existing
8 # clang-package with the new plugin revisions. 8 # clang-package with the new plugin revisions.
9 9
10 # The new package can be uploaded to replace the existing clang 10 # The new package can be uploaded to replace the existing clang
(...skipping 12 matching lines...) Expand all
23 SO_EXT="dylib" 23 SO_EXT="dylib"
24 else 24 else
25 PLATFORM=Linux_x64 25 PLATFORM=Linux_x64
26 SO_EXT="so" 26 SO_EXT="so"
27 fi 27 fi
28 28
29 # Build clang with the new plugin revisions. 29 # Build clang with the new plugin revisions.
30 "$THIS_DIR"/package.sh $@ 30 "$THIS_DIR"/package.sh $@
31 31
32 R=$("${LLVM_BIN_DIR}/clang" --version | \ 32 R=$("${LLVM_BIN_DIR}/clang" --version | \
33 sed -ne 's/clang version .*(trunk \([0-9]*\))/\1/p') 33 sed -ne 's/clang version .*(\([0-9]*\))/\1/p')
34 PDIR=clang-$R 34 PDIR=clang-$R
35 35
36 if [ ! -f "$PDIR.tgz" ]; then 36 if [ ! -f "$PDIR.tgz" ]; then
37 echo "Could not find package archive $PDIR.tgz generated by package.sh" 37 echo "Could not find package archive $PDIR.tgz generated by package.sh"
38 exit 1 38 exit 1
39 fi 39 fi
40 40
41 # We don't want to change the clang binary, so fetch the current clang 41 # We don't want to change the clang binary, so fetch the current clang
42 # package and add the plugin shared-libraries to the existing package. 42 # package and add the plugin shared-libraries to the existing package.
43 rm -rf $LLVM_BUILD_DIR 43 rm -rf $LLVM_BUILD_DIR
44 "$THIS_DIR"/update.sh 44 "$THIS_DIR"/update.sh
45 45
46 LIBNAME=$(grep LIBRARYNAME "$THIS_DIR"/../blink_gc_plugin/Makefile \ 46 LIBNAME=\
47 | cut -d ' ' -f 3) 47 $(grep 'set( LIBRARYNAME' "$THIS_DIR"/../blink_gc_plugin/CMakeLists.txt \
48 | cut -d ' ' -f 3)
48 49
49 LIBFILE=lib$LIBNAME.$SO_EXT 50 LIBFILE=lib$LIBNAME.$SO_EXT
50 51
51 # Check that we are actually creating the plugin at a new revision. 52 # Check that we are actually creating the plugin at a new revision.
52 if [ -f "$LLVM_LIB_DIR/$LIBFILE" ]; then 53 if [ -f "$LLVM_LIB_DIR/$LIBFILE" ]; then
53 echo "The plugin revision $LIBNAME is already in the existing package." 54 echo "The plugin revision $LIBNAME is already in the existing package."
54 exit 1 55 exit 1
55 fi 56 fi
56 57
57 cp $PDIR/lib/$LIBFILE "$LLVM_LIB_DIR/" 58 cp $PDIR/lib/$LIBFILE "$LLVM_LIB_DIR/"
58 tar zcf ${PDIR}_repack.tgz -C "$LLVM_TAR_DIR" bin lib buildlog.txt 59 tar zcf ${PDIR}_repack.tgz -C "$LLVM_TAR_DIR" bin lib buildlog.txt
59 60
60 echo The clang package has been repackaged with $LIBNAME 61 echo The clang package has been repackaged with $LIBNAME
61 echo To upload, run: 62 echo To upload, run:
62 echo gsutil cp -a public-read ${PDIR}_repack.tgz \ 63 echo gsutil cp -a public-read ${PDIR}_repack.tgz \
63 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz 64 gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698