This file is indexed.

/usr/bin/br_biofetch is in ruby-bio 1.5.0-2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/ruby
#
# = biofetch - BioFetch client
#
# Copyright::   Copyright (C) 2002
#               Toshiaki Katayama <k@bioruby.org>
# License::     The Ruby License
#
#

begin
  require 'rubygems'
rescue LoadError
end

require 'bio/io/fetch'

def require_bio_old_biofetch_emulator(mandatory = true)
  begin
    require 'bio-old-biofetch-emulator'
  rescue LoadError
    if mandatory then
      $stderr.puts "Error: please install bio-old-biofetch-emulator gem."
      exit 1
    end
  end
end

def default_url
  'http://bioruby.org/cgi-bin/biofetch.rb'
end

def another_url
  'http://www.ebi.ac.uk/cgi-bin/dbfetch'
end

def usage
  puts "#{$0} [-s[erver] #{another_url}] db id [style] [format]"
  puts "  server : URL of the BioFetch CGI (default is #{default_url})"
  puts "      db : database name (embl, genbank, etc.)"
  puts "      id : entry id"
  puts "   style : 'raw' or 'html' (default is 'raw')"
  puts "  format : change the output format ('default', 'fasta', etc.)"
end

if ARGV.empty? or ARGV[0] =~ /^--?h/
  usage
  exit 1
end

case ARGV[0]
when /^--?s/				# User specified server
  require_bio_old_biofetch_emulator(false)
  ARGV.shift
  serv = Bio::Fetch.new(ARGV.shift)
  puts serv.fetch(*ARGV)
when /^--?e/				# EBI server
  ARGV.shift
  serv = Bio::Fetch.new(another_url)
  puts serv.fetch(*ARGV)
when /^--?r/				# BioRuby server
  require_bio_old_biofetch_emulator
  ARGV.shift
  serv = Bio::Fetch.new(default_url)
  puts serv.fetch(*ARGV)
else					# Default server
  require_bio_old_biofetch_emulator
  puts Bio::Fetch.query(*ARGV)
end