OLD | NEW |
(Empty) | |
| 1 #!/bin/sh |
| 2 # |
| 3 # Produce a build of dartc that can be used to measure its performance over |
| 4 # time. This script needs to be backwards compatible with earlier |
| 5 # revisions. |
| 6 # |
| 7 # TODO: Still need to handle revisions between r2694 and r2764. |
| 8 # |
| 9 DARTC_REVISION=$1 |
| 10 USERNAME=$2 |
| 11 PASSWORD=$3 |
| 12 |
| 13 # Checkout the depot tools |
| 14 svn checkout --quiet http://src.chromium.org/svn/trunk/tools/depot_tools depot_t
ools |
| 15 GCLIENT_CMD=./depot_tools/gclient |
| 16 |
| 17 # Make a gclient with the compiler deps only |
| 18 $GCLIENT_CMD config https://dart.googlecode.com/svn/branches/bleeding_edge/deps/
compiler.deps |
| 19 |
| 20 # Make sure that we have access |
| 21 svn ls --username $USERNAME --password "$PASSWORD" https://dart.googlecode.com/s
vn/ |
| 22 |
| 23 # Try to sync to a particular revision transitively; muffle the output |
| 24 $GCLIENT_CMD sync -r $DARTC_REVISION -t > gclient.sync.txt |
| 25 |
| 26 # Build dartc |
| 27 cd compiler |
| 28 ../tools/build.py --mode release |
| 29 rc=$? |
| 30 if [ $rc -ne 0 ]; then |
| 31 exit $rc |
| 32 fi |
| 33 |
| 34 # Give the metrics system a backwards compatible way of getting to the |
| 35 # artifacts that it needs. |
| 36 cd .. |
| 37 mkdir -p prebuilt |
| 38 cd prebuilt |
| 39 COMPILER_OUTDIR=../compiler/out/Release_ia32 |
| 40 cp -r $COMPILER_OUTDIR/compiler ./compiler |
| 41 GENERATED_SCRIPT_DIR=obj.target/geni/dartc |
| 42 PATH_TO_METRICS_SCRIPT=$COMPILER_OUTDIR/$GENERATED_SCRIPT_DIR |
| 43 cp -r $PATH_TO_METRICS_SCRIPT/dartc_run.sh . |
| 44 cp -r $PATH_TO_METRICS_SCRIPT/dartc_size.sh . |
| 45 cp $COMPILER_OUTDIR/d8 . |
| 46 if [ -e $PATH_TO_METRICS_SCRIPT/dartc_metrics.sh ]; then |
| 47 cp $PATH_TO_METRICS_SCRIPT/dartc_metrics.sh . |
| 48 fi |
| 49 |
OLD | NEW |