File indexing completed on 2024-12-01 04:19:15

0001 #!/bin/sh
0002 # Invokes cppclean for the project.
0003 # Run after successful building.
0004 # Arguments: <build_dir>
0005 
0006 set -e
0007 
0008 build=$1
0009 cd $build
0010 
0011 src=$(grep SOURCE_DIR CMakeCache.txt | sed -e "s/.*=//")
0012 sqlite_inc=$(grep SQLITE_INCLUDE_PATH CMakeCache.txt | sed -e "s/.*=//")
0013 
0014 cppclean \
0015 -I$src/autotests \
0016 -I$src/src \
0017 -I$src/src/expression \
0018 -I$src/src/generated \
0019 -I$src/src/parser/generated \
0020 -I$src/src/interfaces \
0021 -I$src/src/parser \
0022 -I$src/src/sql \
0023 -I$src/src/tools \
0024 -I$src/src/views \
0025 -I$build/src \
0026 -I$build/autotests \
0027 -I$build/src/drivers/mysql \
0028 -I$build/src/drivers/postgresql \
0029 -I$build/src/drivers/sqlite \
0030 -I$sqlite_inc \
0031 $src >&2 || true