Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 24 lines (16 sloc) 0.525 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!/usr/bin/ruby

if ARGV.size != 1
  STDERR.puts "Usage: do_create <output_directory>"
  exit 1
end

output_dir = ARGV[0]

puts "Generating help into directory '#{output_dir}'"

input_dir = File.expand_path( File.dirname( __FILE__ ) )

cmd = "helphelp -o #{output_dir} #{input_dir}"

if !system cmd
  STDERR.puts "Error executing command '#{cmd}'"
  STDERR.puts "Make sure you have installed the helphelp gem by running"
  STDERR.puts " sudo gem install helphelp"
  exit 1
end

system "xdg-open #{output_dir}/overview.html"
Something went wrong with that request. Please try again.