[BioRuby-cvs] bioruby/bin bioruby,1.11,1.12

Katayama Toshiaki k at pub.open-bio.org
Thu Feb 9 20:17:06 UTC 2006


Update of /home/repository/bioruby/bioruby/bin
In directory pub.open-bio.org:/tmp/cvs-serv18814/bin

Modified Files:
	bioruby 
Log Message:
* fixed to run without argument. if argument is not given, current directory
  will be used to save session


Index: bioruby
===================================================================
RCS file: /home/repository/bioruby/bioruby/bin/bioruby,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** bioruby	9 Feb 2006 16:29:10 -0000	1.11
--- bioruby	9 Feb 2006 20:17:03 -0000	1.12
***************
*** 23,37 ****
  
  # working directory or script file
! arg = ARGV.shift
! if File.directory?(arg)
!   # directory or symlink to directory
!   Dir.chdir(arg)
! elsif File.exists?(arg)
!   # BioRuby shell script (lib/bioruby.rb can be obsolete)
!   load arg
!   exit
! elsif arg
!   Dir.mkdir(arg)
!   Dir.chdir(arg)
  end
  
--- 23,38 ----
  
  # working directory or script file
! if arg = ARGV.shift
!   if File.directory?(arg)
!     # directory or symlink to directory
!     Dir.chdir(arg)
!   elsif File.exists?(arg)
!     # BioRuby shell script (lib/bioruby.rb can be obsolete)
!     load arg
!     exit
!   elsif arg
!     Dir.mkdir(arg)
!     Dir.chdir(arg)
!   end
  end
  




More information about the bioruby-cvs mailing list