source: MondoRescue/branches/3.2/MondoRescue/lib/MondoRescue/Version.pm@ 3346

Last change on this file since 3346 was 3346, checked in by Bruno Cornec, 9 years ago
  • Adds a new Version.pm module to get version management a la pb in MondoRescue
File size: 709 bytes
Line 
1#!/usr/bin/perl -w
2#
3# Declare versions that will be used in MondoRescue
4# Those are filtered with pb mecanism
5# and have been isolated here to avoid unrelated effects
6#
7# Copyright B. Cornec 2007-2015
8# Provided under the GPL v2
9#
10package MondoRescue::Version;
11
12use strict;
13
14# Inherit from the "Exporter" module which handles exporting functions.
15
16use vars qw($VERSION $REVISION @ISA @EXPORT);
17use Exporter;
18
19# Export, by default, all the functions into the namespace of
20# any code which uses this module.
21our @ISA = qw(Exporter);
22our @EXPORT = qw(mr_version_init);
23
24$VERSION = "PBVER";
25$REVISION = "PBREV";
26
27sub mr_version_init {
28
29my $mrver = $VERSION;
30my $mrrev = $REVISION;
31
32return($mrver,$mrrev);
33}
341;
Note: See TracBrowser for help on using the repository browser.