Skip to content

Commit

Permalink
Rename rootpath to gempath
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed May 1, 2012
1 parent bfa714a commit 3e43de8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/bio-gem/templates/bin/bio-plugin
Expand Up @@ -6,13 +6,14 @@

USAGE = "Describe <%= bin_name %>"

rootpath = File.dirname(File.dirname(__FILE__))
$: << File.join(rootpath,'lib')
gempath = File.dirname(File.dirname(__FILE__))
$: << File.join(gempath,'lib')

VERSION = File.new(File.join(rootpath,'VERSION')).read.chomp
VERSION_FILENAME=File.join(gempath,'VERSION')
version = File.new(VERSION_FILENAME).read.chomp

# print banner
print "<%= bin_name %> #{VERSION} by <%= user_name %> <%= Time.now.year %>\n"
print "<%= bin_name %> #{version} by <%= user_name %> <%= Time.now.year %>\n"

if ARGV.size == 0
print USAGE
Expand Down

0 comments on commit 3e43de8

Please sign in to comment.