source:
tools/build/clean_hdrs@
6ece306
Last change on this file since 6ece306 was c65a80b, checked in by , 8 years ago | |
---|---|
|
|
File size: 804 bytes |
Line | |
---|---|
1 | #!/bin/bash |
2 | # -*- Mode: SH -*- |
3 | # |
4 | # Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo |
5 | # |
6 | # The contents of this file are covered under the licence agreement in the |
7 | # file "LICENCE" distributed with Cforall. |
8 | # |
9 | # clean_hdrs -- |
10 | # |
11 | # Author : Thierry Delisle |
12 | # Created On : Tue Jul 11 16:26:46 2017 |
13 | # Last Modified By : |
14 | # Last Modified On : |
15 | # Update Count : 0 |
16 | # |
17 | |
18 | set -x |
19 | if [ -z "$IWYU_HOME" ]; then |
20 | echo "Need to set IWYU_HOME" |
21 | exit 1 |
22 | fi |
23 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
24 | |
25 | cd src |
26 | rm -f result.log |
27 | make CXX="${IWYU_HOME}/build/include-what-you-use 2>&1" -ks 2> /dev/null | awk -f ${DIR}/clean_hdr.awk > result.log -v path=$@ |
28 | python ${IWYU_HOME}/src/fix_includes.py --nosafe_headers --comments --blank_lines < result.log |
Note:
See TracBrowser
for help on using the repository browser.