15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#!/bin/sh 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# Copyright (c) 2011 The Chromium Authors. All rights reserved. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# Use of this source code is governed by a BSD-style license that can be 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# found in the LICENSE file. 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# This is a small wrapper script around change_mach_o_flags.py allowing it to 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# be invoked easily from Xcode. change_mach_o_flags.py expects its arguments 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# on the command line, but Xcode puts its parameters in the environment. 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)set -e 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)exec "$(dirname "${0}")/change_mach_o_flags.py" \ 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) "${@}" \ 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) "${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}" 16