eclipse_make.sh 487 B

123456789
  1. #!/bin/bash
  2. # A wrapper for make on Windows with Eclipse
  3. #
  4. # Eclipse's output parser expects to see output of the form C:/dir/dir/file but our Make
  5. # process uses MinGW paths of the form /c/dir/dir/file. So parse these out...
  6. #
  7. # (regexp deliberate only matches after a space character to try and avoid false-positives.)
  8. echo "Running make in $(pwd)"
  9. make $@ V=1 | sed -E "s@ /([a-z])/(.+)/@ \1:/\2/@g" | sed -E "s@-I/([a-z])/(.+)/@-I\1:/\2/@g" | sed -E "s@-L/([a-z])/(.+)/@-L\1:/\2/@g"