summaryrefslogtreecommitdiffstats
path: root/chrome/app/tweak_mac_lproj_folders
blob: d15c8585a38c981dcc12dedae1419404f8305fa8 (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.

# This script is intended to run from a "postbuild" action from within Xcode.
# It will create any symlinks needed to sync up what comes from the GRIT files
# with what Cocoa would like.

set -e

# Working in the resources directory
cd "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Contents/Resources"

# Remove the stale zh.lproj
# TODO: This can go away about 09/01/09, when they won't exist on the bots or
# developers' local builds.
rm -rf "zh.lproj" "en.lproj"

# Provide an link for en.lproj that points to en-US.lproj.
ln -fhs "en-US.lproj" "en.lproj"