2d17130156
Change-Id: I1039d34cef1d426a9deb6dec2c3e7d746f9cf1ae
95 lines
2.3 KiB
Bash
Executable file
95 lines
2.3 KiB
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
SRCDIR=$1
|
|
GNUMAKE=$2
|
|
|
|
cd ${SRCDIR}
|
|
which callcatcher > /dev/null 2>&1 || \
|
|
(echo "callcatcher not installed" && false)
|
|
|
|
mkdir -p ${SRCDIR}/callcatcher
|
|
cd ${SRCDIR}/callcatcher
|
|
|
|
echo "--without-doxygen
|
|
--enable-verbose
|
|
--enable-gio
|
|
--enable-packagekit
|
|
--disable-gnome-vfs
|
|
--enable-extension-integration
|
|
--enable-graphite
|
|
--enable-evolution2
|
|
--enable-lockdown
|
|
--enable-online-update
|
|
--enable-dbgutil
|
|
--enable-werror
|
|
--enable-gtk3
|
|
--enable-kde4
|
|
--enable-dbus
|
|
--enable-gstreamer
|
|
--disable-gstreamer-0-10"
|
|
> autogen.input
|
|
|
|
export CC="callcatcher ${CC:-gcc}"
|
|
export CXX="callcatcher ${CXX:-g++}"
|
|
export AR="callarchive ${AR:-ar}"
|
|
|
|
/bin/env -i CC="$CC" CXX="$CXX" AR="$AR" /bin/bash -l ../autogen.sh
|
|
|
|
export dbglevel=2
|
|
|
|
make
|
|
|
|
callanalyse \
|
|
instdir/program/* \
|
|
instdir/sdk/bin/* \
|
|
workdir/LinkTarget/*/* workdir/LinkTarget/*/*/* \
|
|
workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit.so* \
|
|
> unusedcode.all
|
|
|
|
grep ::.*\( unusedcode.all \
|
|
| grep -v ^Atom \
|
|
| grep -v ^atom:: \
|
|
| grep -v ^boost:: \
|
|
| grep -v ^CIcc \
|
|
| grep -v ^CLuceneError:: \
|
|
| grep -v ^cppu:: \
|
|
| grep -v ^CppUnit:: \
|
|
| grep -v ^Dde \
|
|
| grep -v ^glTF:: \
|
|
| grep -v ^graphite2:: \
|
|
| grep -v ^jvmaccess:: \
|
|
| grep -v ^libcdr:: \
|
|
| grep -v ^libcmis:: \
|
|
| grep -v ^libmspub:: \
|
|
| grep -v ^libvisio:: \
|
|
| grep -v ^libwpg:: \
|
|
| grep -v ^libwps_tools_win:: \
|
|
| grep -v ^lucene:: \
|
|
| grep -v ^Matrix3d:: \
|
|
| grep -v ^RelatedMultipart:: \
|
|
| grep -v ^salhelper:: \
|
|
| grep -v ^VSDInternalStream:: \
|
|
| grep -v ^WP1 \
|
|
| grep -v ^WP3 \
|
|
| grep -v ^WP42 \
|
|
| grep -v ^WP6 \
|
|
| grep -v ^WPG \
|
|
| grep -v ^WPS \
|
|
| grep -v WPX \
|
|
| grep -v ^WSObject \
|
|
| grep -v ^OAuth2Handler \
|
|
| grep -v ^COLLADABU:: \
|
|
| grep -v ^COLLADAFW:: \
|
|
| grep -v ^COLLADASaxFWL14:: \
|
|
| grep -v ^COLLADASaxFWL15:: \
|
|
| grep -v ^COLLADASaxFWL:: \
|
|
| grep -v ^o3dgc:: \
|
|
| grep -v ^MathML:: \
|
|
| grep -v ^GeneratedSaxParser:: \
|
|
| grep -v ^GLTF:: \
|
|
| grep -v ^FPSCounter:: \
|
|
| grep -v ^CPhysicalCamera:: \
|
|
| grep -v ^RenderScene:: \
|
|
| grep -v ^ShaderProgram:: \
|
|
| grep -v ^Texture:::: \
|
|
> ../unusedcode.easy
|