title: Setting up custom build environment
body: <p>I am trying to set up my custom build environment for Sublime Text 3 for competitive Programming.</p>
  
  <p>My target is as follows :</p>
  
  <ol>
  <li>Build the current source file</li>
  <li>Run it and read inputs from a file <code>input.in</code></li>
  <li>Write output to a file <code>output.out</code></li>
  <li><code>diff expected output.out</code>. <code>expected</code> file contains the expected output</li>
  </ol>
  
  <p>This is how the window setup looks like <a href="https://i.stack.imgur.com/saB5o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/saB5o.png" alt="enter image description here"></a></p>
  
  <p>This is my json file for the build system</p>
  
  <pre><code>{
  "cmd": ["g++ -std=c++11 ${file} -o ${file_path}/${file_base_name} &amp;&amp; ${file_path}/${file_base_name}&lt;${file_path}/input.in&gt;${file_path}/output.out &amp;&amp; diff output.out expected"],
  "shell":true
  }
  </code></pre>
  
  <p>So far steps 1-3 are working as expected. But for last step 4, I am not able to get the result in proper suitable format. e.g. when files match there is no output (as <code>diff</code> generates nothing in case of match) and in case of non-match, this build system is generating output in non human-readable format.</p>
  
  <pre><code>5a6
  &gt; f
  [Finished in 0.1s with exit code 1]
  </code></pre>
  
  <p>Can anyone suggest a better way to output the result or is there a way to use linux's notification utility</p>