OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 |
| 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 usage() { |
| 8 echo "Usage: $0 <version-tag>" |
| 9 } |
| 10 |
| 11 if [[ $# -lt 1 ]]; then |
| 12 usage |
| 13 exit 0 |
| 14 fi |
| 15 |
| 16 PACKAGENAME=webgl-tests-${1} |
| 17 |
| 18 # source locations and revisions, taken from the original DEPS file |
| 19 WEBGL="https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests@1
1002" |
| 20 WEBGLTO="WebGL" |
| 21 |
| 22 function update_mirror() { |
| 23 LOCALMIRROR=$1 |
| 24 [ -z "${LOCALMIRROR}" ] && return 0 |
| 25 |
| 26 echo -n "Update local mirror? [yn] " |
| 27 read n |
| 28 if [[ "$n" == "y" ]]; then |
| 29 cp "${PACKAGENAME}.tar.gz" ${LOCALMIRROR} |
| 30 fi |
| 31 } |
| 32 |
| 33 function download_stuff() { |
| 34 FILESDIR=`dirname $0` |
| 35 |
| 36 echo "Getting WebGL stuff" |
| 37 for sub in WEBGL; do |
| 38 eval svn export \$\{${sub}\} \$\{${sub}TO\} |
| 39 done |
| 40 |
| 41 tar -cvjf ${PACKAGENAME}.tar.bz2 WebGL |
| 42 } |
| 43 |
| 44 download_stuff "$@" |
| 45 update_mirror |
| 46 |
OLD | NEW |