summaryrefslogtreecommitdiffstats
path: root/build/mac/remove_target_headers
diff options
context:
space:
mode:
Diffstat (limited to 'build/mac/remove_target_headers')
-rwxr-xr-xbuild/mac/remove_target_headers12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/mac/remove_target_headers b/build/mac/remove_target_headers
new file mode 100755
index 0000000..a7e73ac
--- /dev/null
+++ b/build/mac/remove_target_headers
@@ -0,0 +1,12 @@
+#!/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.
+
+set -e
+
+find "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}" -iname '*.h' -delete
+find "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}" -iname 'Headers' -type l -delete
+find "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}" -iname 'Headers' -type d -prune \
+ -delete