Skip to content

Commit

Permalink
cake doc now probably works in both GNU and BSD sed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Hordecki committed Mar 10, 2010
1 parent e9c19b4 commit f9db0ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ task 'install', 'install the `docco` command into /usr/local (or --prefix)', (op
task 'doc', 'rebuild the Docco documentation', ->
exec([
'bin/docco docco.coffee'
'mv docs/docco.html index.html'
'sed -i \'\' "s/docco.css/resources\\/docco.css/" index.html'
'sed "s/docco.css/resources\\/docco.css/" < docs/docco.html > index.html'
'rm -r docs'
].join(' && '), (err) ->
throw err if err
)
)
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@
<span class="nv">next_file: </span><span class="o">-&gt;</span> <span class="nx">generate_documentation</span> <span class="nx">files</span><span class="p">.</span><span class="nx">shift</span><span class="p">(),</span> <span class="nx">next_file</span> <span class="k">if</span> <span class="nx">files</span><span class="p">.</span><span class="nx">length</span>
<span class="nx">next_file</span><span class="p">()</span>

</pre></div> </td> </tr> </tbody> </table> </div> </body> </html>
</pre></div> </td> </tr> </tbody> </table> </div> </body> </html>

0 comments on commit f9db0ba

Please sign in to comment.