-
Notifications
You must be signed in to change notification settings - Fork 5
/
y++
24 lines (18 loc) · 866 Bytes
/
y++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
respath='/usr/local/share/ypp'
python3 $respath/checkflags.py "$@"
if [ $? -ne 0 ] ; then exit 1 ; fi
g++ -x c++ -std=c++11 "$@" -E -Dbe_soymech_on=#include | \
g++ -x c++ -std=c++11 -E -Dfalse=FLAG_FOUND_FALSE - |
python3 $respath/checkfalse.py "$@"
if [ $? -ne 0 ] ; then exit 1 ; fi
g++ -x c++ -std=c++11 "$@" -E -Dbe_soymech_on=#include | \
g++ -x c++ -std=c++11 -E --include=$respath/PROFANITY.cpp - | \
python3 $respath/checkprofanity.py "$@"
if [ $? -ne 0 ] ; then exit 1 ; fi
# Now compile for real
g++ -x c++ -std=c++11 "$@" -E -Dbe_soymech_on=#include -Dkim_li=#define --include=$respath/ani_maymin.cpp | \
g++ -x c++ -std=c++11 -E --include=$respath/CONVERT_TO_CPP.cpp - | \
g++ -x c++ -std=c++11 - 2>&1 | \
g++ -x c++ -std=c++11 -E --include=$respath/UNTYPE.cpp - -std=c++11 -P | \
python3 $respath/process_output.py