Bump version to 1.6 for final release.
[bioperl-live.git] / Bio / Root / Version.pm
blobbd6cb6e4b1b7589eda9d5c9634c21b08933d0cca
1 # $Id$
3 # BioPerl module for Bio::Root::Version
5 # Cared for by Aaron Mackey <amackey@virginia.edu>
7 # Copyright Aaron Mackey
9 # You may distribute this module under the same terms as perl itself
11 # POD documentation - main docs before the code
13 =head1 NAME
15 Bio::Root::Version - provide global, distribution-level versioning
17 =head1 SYNOPSIS
19 package Bio::Tools::NiftyFeature;
20 require Bio::Root::RootI;
23 # later, in client code:
24 package main;
25 use Bio::Tools::NiftyFeature 3.14;
28 ## alternative usage: NiftyFeature defines own $VERSION:
29 package Bio::Tools::NiftyFeature;
30 my $VERSION = 9.8;
32 # later in client code:
33 package main;
35 # ensure we're using an up-to-date BioPerl distribution
36 use Bio::Perl 3.14;
38 # NiftyFeature has its own versioning scheme:
39 use Bio::Tools::NiftyFeature 9.8;
41 =head1 DESCRIPTION
43 This module provides a mechanism by which all other BioPerl modules
44 can share the same $VERSION, without manually synchronizing each file.
46 Bio::Root::RootI itself uses this module, so any module that directly
47 (or indirectly) uses Bio::Root::RootI will get a global $VERSION
48 variable set if it's not already.
51 =head1 FEEDBACK
53 =head2 Mailing Lists
55 User feedback is an integral part of the evolution of this and other
56 Bioperl modules. Send your comments and suggestions preferably to one
57 of the Bioperl mailing lists. Your participation is much appreciated.
59 bioperl-l@bioperl.org - General discussion
60 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
62 =head2 Reporting Bugs
64 Report bugs to the Bioperl bug tracking system to help us keep track
65 the bugs and their resolution. Bug reports can be submitted via the
66 web:
68 http://bugzilla.open-bio.org/
70 =head1 AUTHOR - Aaron Mackey
72 Email amackey@virginia.edu
74 =head1 APPENDIX
76 The rest of the documentation details each of the object
77 methods. Internal methods are usually preceded with a _
79 =cut
82 # Let the code begin...
85 package Bio::Root::Version;
86 use strict;
88 our $VERSION = '1.006000';
89 $VERSION = eval $VERSION;
91 sub import {
92 # try to handle multiple levels of inheritance:
93 my $i = 0;
94 my $pkg = caller($i);
95 no strict 'refs';
96 while ($pkg) {
97 if ($pkg =~ m/^Bio::/o &&
98 not defined ${$pkg . "::VERSION"}) {
99 ${$pkg . "::VERSION"} = $VERSION;
101 $pkg = caller(++$i);
106 __END__