lib/jitai.rb in jitai-0.2.27 vs lib/jitai.rb in jitai-0.2.28
- old
+ new
@@ -22,11 +22,13 @@
# TODO edit ttf2eot so that it's actually installed in the system
if !File.exists?(other_file)
puts "===== #{conversion_type.upcase} format not found. Attempting to convert... ====="
- # TODO fix broken conversion. thanks a lot ttf2eot for not having a apt-get
- %x{cd ttf2eot && ./ttf2eot < #{'../' + @cwd + font_file} > #{'../' + @cwd + font_file.split(".")[0] + conversion_type}}
+ # TODO fix incredibly bad hack
+ curr_dir = Dir.getcwd
+ ttf2eot_dir = "/usr/lib/ruby/gems/1.8/gems/jitai-0.2.28/lib/ttf2eot/"
+ %x{cd #{ttf2eot_dir} && ./ttf2eot < #{'../' + @cwd + font_file} > #{'../' + @cwd + font_file.split(".")[0] + conversion_type} && cd #{curr_dir}}
end
# Rename files, account for conventions.
%x{mv #{other_file} #{other_file.downcase}} if !(File.exists?(other_file.downcase))
%x{mv #{file} #{file.downcase}} if !(File.exists?(file.downcase))