Created
June 22, 2012 11:28
-
-
Save Jell/2972205 to your computer and use it in GitHub Desktop.
Watchr config for Matlab "autotest"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watch( '^(test.*)\.m$' ) { |md| | |
system("matlab -nodisplay -nodesktop -nojvm -r '#{md[1]}; quit'") | |
} | |
watch( '^(?!test)(.*)\.m$' ) { |md| | |
system("matlab -nodisplay -nodesktop -nojvm -r 'test#{md[1]}; quit'") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment