Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 12 lines (8 sloc) 260 Bytes
#!/bin/sh
if [[ $# -lt 1 ]]; then
echo "Usage: $0 <build-dir>"
exit -1
fi
set -x
find $1 -name \*\.ii -o -name \*\.i > saved-temps
xargs grep '^#' < saved-temps | awk '{print $3}' | tr -d '<>"' | grep '^/' | grep -v "^${1}" | sort -u > all-includes