summaryrefslogtreecommitdiffstats
path: root/chrome/tools/build/mac/transition_lprojs
blob: 40ccb448eb1a7123a13d01cf1ffead6c54a9a42b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Clean up the old .lproj structure, where English was in en_US.lproj, and
# en.lproj was a symbolic link.
#
# TODO(mark): Remove after November 17, 2009, allowing two weeks for the
# transition.

RESOURCES_DIR="${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Resources"

# Always dump en_US.lproj.
rm -rf "${RESOURCES_DIR}/en_US.lproj"

# Only dump en.lproj if it's a symbolic link.  If it's a directory, then the
# transition has already been performed.
if [ -L "${RESOURCES_DIR}/en.lproj" ] ; then
  rm -f "${RESOURCES_DIR}/en.lproj"
fi