lyx_mirror/development/tools/list_included_headers.sh
Guillaume Munch a8ad43d4fd Check that we have bash before running updatelfuns.sh
Also set executable bits on the devel scripts.
2016-01-11 16:26:13 +00:00

10 lines
302 B
Bash
Executable File

#!/bin/bash
for i in "$@" ; do
echo "#include <$i>" > 1.cpp
inc='-I. -I/suse/usr/src/lyx/trunk/boost -I/usr/include/qt4/QtCore -I/usr/include/qt4'
g++ $inc -DQT_NO_STL -E 1.cpp | grep '^#' | cut -d '"' -f 2 | sort | uniq \
| grep -v '^[<#]' | grep -v '^1.cpp$'
#printf "%-40s: %d\n" $i $l
done