Permalink
Browse files

Converted dvipdf command to use dvipdf rather than dvipdfmx

  • Loading branch information...
1 parent 139ec03 commit 1a169e33eea8ea296f81523572040c1bffd57a8d www-data committed Jan 30, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/models/compile.rb
  2. +1 −1 lib/tasks/clsi.rake
View
2 app/models/compile.rb
@@ -329,7 +329,7 @@ def convert_dvi_to_dvi
def convert_dvi_to_pdf
input = File.join(compile_directory_rel_to_chroot, 'output.dvi')
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)
# We need to wait a short while for the pdf to appear
View
2 lib/tasks/clsi.rake
@@ -10,7 +10,7 @@ namespace :clsi do
print "Compiling the chrooted #{command} binary...\n"
compile_command = "gcc chrootedbinary.c -o chrooted#{command} " +
"-DCHROOT_DIR='\"#{LATEX_CHROOT_DIR}\"' " +
- "-DCOMMAND='\"/bin/#{command == :dvipdf ? :dvipdfmx : command}\"'"
+ "-DCOMMAND='\"/bin/#{command}\"'"
system(compile_command)
end

0 comments on commit 1a169e3

Please sign in to comment.