Skip to content

Commit

Permalink
remoção da ficha pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
edusantana committed Nov 6, 2014
1 parent d2fc6ce commit 746dbc3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,23 @@ namespace "release" do
editora_file = "#{release_dir}/livro/editora/editora.pdf"
livro_source = "#{release_dir}/livro/livro.asc"
livro_pdf = "#{release_dir}/livro/livro.pdf"

prefacio_code_att = ""
PREFACIO_CODE_DIR = "#{@RELEASE_DIR}/#{@BOOK_SOURCE_DIR}/capitulos/code/prefacio"
if Dir.exist?(PREFACIO_CODE_DIR) then
Dir.chdir(PREFACIO_CODE_DIR) do
prefacio_code_file = Dir.glob("*").first
if (prefacio_code_file) then
prefacio_code_att = "-a prefacio-code=#{prefacio_code_file}"
end
end
end

directory release_dir
file livro_source => [release_dir]
file livro_pdf => [livro_source] do
Dir.chdir(@RELEASE_DIR) do
@A2X_COMMAND="-v -k -f pdf --icons -a docinfo1 -a edition=#{@tag} -a lang=pt-BR -d book --dblatex-opts '-T computacao -P latex.babel.language=brazilian' -a livro-pdf"
@A2X_COMMAND="-v -k -f pdf --icons -a docinfo1 -a edition=#{@tag} -a lang=pt-BR -d book --dblatex-opts '-T computacao -P latex.babel.language=brazilian' -a livro-pdf #{prefacio_code_att}"
system "#{@A2X_BIN} #{@A2X_COMMAND} livro/livro.asc"
end
end
Expand Down
Binary file removed livro/editora/editora.pdf
Binary file not shown.

0 comments on commit 746dbc3

Please sign in to comment.