Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- grep '^\s*#\s*\(include\|import\)' ${file.absolutePath} >__tmp_include.cpp
- grep -v '^\s*#\s*\(include\|import\)\b' ${file.absolutePath} >__tmp_code.cpp
- touch __tmp_preprocessed.cpp
- if [ -s __tmp_code.cpp ]
- then
- $preprocessCommand __tmp_code.cpp | grep -v ^# >__tmp_preprocessed.cpp
- fi
- cat __tmp_include.cpp >${outputDir.absolutePath}/${file.name}
- cat __tmp_preprocessed.cpp >>${outputDir.absolutePath}/${file.name}
- rm __tmp_*.cpp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement