bin/shellexport in shellplay-0.1.2 vs bin/shellexport in shellplay-0.1.3
- old
+ new
@@ -1,9 +1,10 @@
#!/usr/bin/env ruby
require 'paint'
require 'erb'
+require "shell2html"
lib = File.expand_path('../../lib', __FILE__)
tpl = File.expand_path('../../tpl', __FILE__)
basedir = File.join(ENV['HOME'], '.shellplay')
@@ -20,5 +21,11 @@
erb = ERB.new(File.read(File.join(tpl, 'index.html')))
File.open(File.join(dest, "index.html"), 'w') do |f|
f.puts erb.result(binding)
end
+FileUtils.cp(File.join(tpl, 'jquery-1.11.1.min.js'), dest)
+FileUtils.cp(File.join(tpl, 'shellplay.js'), dest)
+FileUtils.cp(File.join(tpl, 'shellplay.css'), dest)
+File.open(File.join(dest, "colors.css"), 'w') do |f|
+ f.puts Shell2html.css
+end