Explicitly disabling viewport when running layout tests
[chromium-blink-merge.git] / chrome / tools / build / mac / clean_up_old_versions
blobb5c6e5fce98cfa46216d2002780ce7903b4fa96a
1 #!/bin/sh
3 # Copyright (c) 2009 The Chromium 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.
7 # Remove old versioned directories from an .app bundle. The built-up bundle
8 # only needs to contain the current versioned directory.
10 set -e
12 if [ $# -ne 1 ] ; then
13 echo "usage: ${0} VERSION" >& 2
14 exit 1
17 VERSION="${1}"
18 CONTENTS_DIR="${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}"
19 VERSIONED_DIR="${CONTENTS_DIR}/Versions"
20 CURRENT_VERSIONED_DIR="${VERSIONED_DIR}/${VERSION}"
22 for dir in "${VERSIONED_DIR}/"* ; do
23 if [ "${dir}" != "${CURRENT_VERSIONED_DIR}" ] ; then
24 rm -rf "${dir}"
26 done