Skip to content

Instantly share code, notes, and snippets.

@Jell
Created June 22, 2012 11:28
Show Gist options
  • Save Jell/2972205 to your computer and use it in GitHub Desktop.
Save Jell/2972205 to your computer and use it in GitHub Desktop.
Watchr config for Matlab "autotest"
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