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

Side by Side Diff: chrome/tools/build/mac/make_locale_dirs.sh

Issue 7714018: Give plug-in processes an executable heap and disable PIE/ASLR for Native (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/chrome_process_util.cc ('k') | chrome/tools/build/mac/make_more_helpers.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:executable
+ *
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #!/bin/bash
2
3 # Copyright (c) 2011 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 # usage: make_locale_dirs.sh locale_dir [...]
8 #
9 # This script creates the Resources directory for the bundle being built by
10 # the Xcode target that calls it if the directory does not yet exist. It then
11 # changes to that directory and creates subdirectories for each locale_dir
12 # passed on the command line.
13 #
14 # This script is intended to create empty locale directories (.lproj) in a
15 # Cocoa .app bundle. The presence of these empty directories is sufficient to
16 # convince Cocoa that the application supports the named localization, even if
17 # an InfoPlist.strings file is not provided. Chrome uses these empty locale
18 # directoires for its helper executable bundles, which do not otherwise
19 # require any direct Cocoa locale support.
20
21 set -eu
22
23 if [[ ${#} -eq 0 ]]; then
24 echo "usage: ${0} locale_dir [...]" >& 2
25 exit 1
26 fi
27
28 RESOURCES_DIR="${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
29 if [[ ! -d "${RESOURCES_DIR}" ]]; then
30 mkdir "${RESOURCES_DIR}"
31 fi
32
33 cd "${RESOURCES_DIR}"
34
35 for dir in "${@}"; do
36 if [[ ! -d "${dir}" ]]; then
37 mkdir "${dir}"
38 fi
39 done
OLDNEW
« no previous file with comments | « chrome/test/base/chrome_process_util.cc ('k') | chrome/tools/build/mac/make_more_helpers.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698