Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | None | 0 0
  1.     grep '^\s*#\s*\(include\|import\)' ${file.absolutePath} >__tmp_include.cpp
  2.     grep -v '^\s*#\s*\(include\|import\)\b' ${file.absolutePath} >__tmp_code.cpp
  3.     touch __tmp_preprocessed.cpp
  4.     if [ -s __tmp_code.cpp ]
  5.     then
  6.         $preprocessCommand __tmp_code.cpp | grep -v ^# >__tmp_preprocessed.cpp
  7.     fi
  8.     cat __tmp_include.cpp >${outputDir.absolutePath}/${file.name}
  9.     cat __tmp_preprocessed.cpp >>${outputDir.absolutePath}/${file.name}
  10.     rm __tmp_*.cpp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement