Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- def process_line(line)
- if line =~ /(.*):(\d*):(.*)/ then
- "<a href=\"txmt://open?url=file://#{ENV['TM_DIRECTORY']}/#{$1}&line=#{$2}\">#{$1}:#{$2}: #{$3}</a><br/>"
- else
- line + "<br/>"
- end
- end
- system "make &> /tmp/textmake.output"
- File.open("/tmp/textmake.output") do |f|
- f.each do |line|
- puts process_line(line)
- end
- end
Add Comment
Please, Sign In to add comment