Skip to content

Commit

Permalink
Converted dvipdf command to use dvipdf rather than dvipdfmx
Browse files Browse the repository at this point in the history
  • Loading branch information
www-data committed Jan 30, 2011
1 parent 139ec03 commit 1a169e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/compile.rb
Expand Up @@ -329,7 +329,7 @@ def convert_dvi_to_dvi
def convert_dvi_to_pdf def convert_dvi_to_pdf
input = File.join(compile_directory_rel_to_chroot, 'output.dvi') input = File.join(compile_directory_rel_to_chroot, 'output.dvi')
output = File.join(compile_directory_rel_to_chroot, 'output.pdf') output = File.join(compile_directory_rel_to_chroot, 'output.pdf')
dvipdf_command = "env TEXPICTS=#{compile_directory_rel_to_chroot} #{DVIPDF_COMMAND} -o \"#{output}\" \"#{input}\" &> /dev/null" dvipdf_command = "env TEXPICTS=#{compile_directory_rel_to_chroot} #{DVIPDF_COMMAND} \"#{input}\" \"#{output}\" &> /dev/null"
run_with_timeout(dvipdf_command, DVIPDF_TIMEOUT) run_with_timeout(dvipdf_command, DVIPDF_TIMEOUT)


# We need to wait a short while for the pdf to appear # We need to wait a short while for the pdf to appear
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/clsi.rake
Expand Up @@ -10,7 +10,7 @@ namespace :clsi do
print "Compiling the chrooted #{command} binary...\n" print "Compiling the chrooted #{command} binary...\n"
compile_command = "gcc chrootedbinary.c -o chrooted#{command} " + compile_command = "gcc chrootedbinary.c -o chrooted#{command} " +
"-DCHROOT_DIR='\"#{LATEX_CHROOT_DIR}\"' " + "-DCHROOT_DIR='\"#{LATEX_CHROOT_DIR}\"' " +
"-DCOMMAND='\"/bin/#{command == :dvipdf ? :dvipdfmx : command}\"'" "-DCOMMAND='\"/bin/#{command}\"'"
system(compile_command) system(compile_command)
end end


Expand Down

0 comments on commit 1a169e3

Please sign in to comment.