File: cppclean-kdb.sh

package info (click to toggle)
kdb 3.2.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,276 kB
  • sloc: cpp: 38,360; yacc: 940; python: 779; sh: 711; ansic: 440; lex: 367; xml: 182; sql: 51; makefile: 10
file content (31 lines) | stat: -rwxr-xr-x 645 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# Invokes cppclean for the project.
# Run after successful building.
# Arguments: <build_dir>

set -e

build=$1
cd $build

src=$(grep SOURCE_DIR CMakeCache.txt | sed -e "s/.*=//")
sqlite_inc=$(grep SQLITE_INCLUDE_PATH CMakeCache.txt | sed -e "s/.*=//")

cppclean \
-I$src/autotests \
-I$src/src \
-I$src/src/expression \
-I$src/src/generated \
-I$src/src/parser/generated \
-I$src/src/interfaces \
-I$src/src/parser \
-I$src/src/sql \
-I$src/src/tools \
-I$src/src/views \
-I$build/src \
-I$build/autotests \
-I$build/src/drivers/mysql \
-I$build/src/drivers/postgresql \
-I$build/src/drivers/sqlite \
-I$sqlite_inc \
$src >&2 || true