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

Side by Side Diff: chrome/tools/build/mac/clean_up_old_versions

Issue 2793433002: Delete several unused GYP scripts from build/mac and chrome/tools/build/mac. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « chrome/tools/build/mac/OWNERS ('k') | chrome/tools/build/mac/dump_product_syms » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
2
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.
6
7 # Remove old versioned directories from an .app bundle. The built-up bundle
8 # only needs to contain the current versioned directory.
9
10 set -e
11
12 if [ $# -ne 1 ] ; then
13 echo "usage: ${0} VERSION" >& 2
14 exit 1
15 fi
16
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}"
21
22 for dir in "${VERSIONED_DIR}/"* ; do
23 if [ "${dir}" != "${CURRENT_VERSIONED_DIR}" ] ; then
24 rm -rf "${dir}"
25 fi
26 done
OLDNEW
« no previous file with comments | « chrome/tools/build/mac/OWNERS ('k') | chrome/tools/build/mac/dump_product_syms » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698