unknown wrote:
> i have this
> 
>      jib:~/eg/ruby/rubyforge/rubyforge-0.1.1 > file bin//rubyforge
>      bin//rubyforge: a ruby script text executable
> 
> 
>      jib:~/eg/ruby/rubyforge/rubyforge-0.1.1 > cat ./gemspec.rb
>      lib, version = 
> File::basename(File::dirname(File::expand_path(__FILE__))).split %r/-/, 
> 2
> 
>      require 'rubygems'
> 
>      spec = Gem::Specification.new do |s|
>        s.name = lib
>        s.version = version
>        s.platform = Gem::Platform::RUBY
>        s.summary = lib
> 
>        s.files = Dir["lib/*"] + Dir["bin/*"]
+        s.bindir = "bin"
+        s.executables = ["rubyforge"]
> 
>        s.require_path = "lib"
>        s.autorequire = lib
> 
>        s.has_rdoc = File::exist? "doc"
>        s.test_suite_file = "test/#{ lib }.rb" if File::directory? "test"
> 
>        s.author = "Ara T. Howard"
>        s.email = "ara.t.howard / noaa.gov"
>        s.homepage = "http://codeforpeople.com/lib/ruby/#{ lib }/"
>      end
> 
> 
> and this gem, apparently, does not install a 'rubyforge' script into the 
> system
> bin dir.  why not?

Try adding ...'

         s.bindir = "bin"
         s.executables = ["rubyforge"]

Also, I recommend dropping the autorequire as well.

-- Jim Weirich

-- 
Posted via http://www.ruby-forum.com/.