-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Arquivos temporários estão iniciando o guard
closes #10
- Loading branch information
1 parent
3068586
commit 23946c3
Showing
1 changed file
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |