<%= shebang %> # encoding: utf-8 base = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__ libdir = File.expand_path(File.join(File.dirname(base), "..", "lib")) # because of system installation, there is bin/../lib, but not bin/../lib/<%= @name %> if File.directory?(File.join(libdir, "<%= @name %>")) $:.unshift(libdir) unless $:.include?(libdir) end require "<%= @name %>" # TODO: write the code