Skip to content

Commit

Permalink
Arquivos temporários estão iniciando o guard
Browse files Browse the repository at this point in the history
closes #10
  • Loading branch information
edusantana committed Mar 22, 2017
1 parent 3068586 commit 23946c3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Guardfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# More info at https://github.com/guard/guard#readme

guard :shell do
watch(/((.*)\.md)|configuracao.pdf|configuracao.yaml/) {|m| `limarka exec` }

watch(/^(anexos.md|apendices.md|errata.md|trabalho-academico.md|.*\.latex|configuracao.pdf|configuracao.yaml)$/) do |m|

puts "#{Time.now.strftime('%H:%M:%S')} #{m[0]} foi alterado. Iniciando geração do PDF"
`limarka exec`
# Exibe erros de citações inválidas
`pdfgrep -H --color always '\(\\?\\?\)' xxx*.pdf`
end

watch(/^slides\.md$/) do |m|
puts "#{Time.now.strftime('%H:%M:%S')} #{m[0]} foi alterado. Iniciando geração do Slide PDF"
`pandoc --slide-level=3 -t beamer+raw_tex slides.md -o slides.pdf`
end
end

0 comments on commit 23946c3

Please sign in to comment.