1563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark#!/bin/sh 2db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 3db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# 4db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# Redistribution and use in source and binary forms, with or without 5db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# modification, are permitted provided that the following conditions 6db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# are met: 7db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# 1. Redistributions of source code must retain the above copyright 8db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# notice, this list of conditions and the following disclaimer. 9db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# 2. Redistributions in binary form must reproduce the above copyright 10db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# notice, this list of conditions and the following disclaimer in the 11db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# documentation and/or other materials provided with the distribution. 12db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# 13db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY 14db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY 17db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 18db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 19db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 20db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 22db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# 24db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# A script to find headers included from the given frameworks by files in the 25db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block# current directory (and subdirectories). 26563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark 27563af33bc48281d19dce701398dbb88cb54fd7ecCary Clarkfor framework in $*; do 28563af33bc48281d19dce701398dbb88cb54fd7ecCary Clark echo -e "\n$framework\n==================" 29db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block find . \( -name '*.cpp' -o -name '*.h' -o -name '*.m' -o -name '*.mm' \) -exec grep "<$framework/" {} ';' | sed -e 's|.*/\(.*\.h\).*|\1|' | sort -u 30563af33bc48281d19dce701398dbb88cb54fd7ecCary Clarkdone 31