lib/jitai.rb in jitai-0.2.29 vs lib/jitai.rb in jitai-0.2.30
- old
+ new
@@ -24,11 +24,11 @@
if !File.exists?(other_file)
puts "===== #{conversion_type.upcase} format not found for #{font_file}. Attempting to convert... ====="
# TODO fix incredibly bad hack
curr_dir = Dir.getwd
- ttf2eot_dir = "/usr/lib/ruby/gems/1.8/gems/jitai-0.2.29/lib/ttf2eot/"
- %x{cd #{ttf2eot_dir} && ./ttf2eot < #{'../' + @cwd + font_file} > #{'../' + @cwd + font_file.split(".")[0] + conversion_type} && cd #{curr_dir}}
+ ttf2eot_dir = "/usr/lib/ruby/gems/1.8/gems/jitai-0.2.30/lib/ttf2eot/"
+ %x{cd #{ttf2eot_dir} && ./ttf2eot < #{'../' + @cwd + font_file} > #{curr_dir + @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))