Added 'mktemp' block, removed the 'require', put files used in test into share.

On Jan 12, 2013, at 3:25 AM, Samuel John <notifications@github.com> wrote:

> In glimmer302a.rb:
> 
> > +
> > +    lib.install Dir.glob('scripts/*.awk')
> > +    lib.install Dir.glob('sample-run/*.predict')
> > +    lib.install 'sample-run/tpall.fna'
> > +
> > +    Dir.glob('scripts/*.csh').each do |script|
> > +      inreplace script, '/fs/szgenefinding/Glimmer3/scripts', lib
> > +      inreplace script, '/fs/szgenefinding/Glimmer3', '/usr/local'
> > +      bin.install script
> > +    end
> > +
> > +  end
> > +
> > +  def test
> > +    tmp_dir = File.join(Dir::tmpdir, "#{Time.now.to_i}")
> > +    Dir.mkdir(tmp_dir)
> Does the mktemp do block not work here, as you have done for fasttree? Then, we would not need the require tmpdir.
> The mktemp do automatically generates a new private dir and cds into it.
> 
> —
> Reply to this email directly or view it on GitHub.
> 
>