source: devel/pb-modules/lib/ProjectBuilder/Version.pm @ 2270

Last change on this file since 2270 was 2270, checked in by bruno, 2 years ago

FIX usage of PBCONFVER in VE/VM

File size: 889 bytes
RevLine 
[53]1#!/usr/bin/perl -w
2#
3# Declare versions that will be used in pb
4# Those are filtered with pb mecanism
5# and have been isolated here to avoid unrelated effects
6#
[2032]7# Copyright B. Cornec 2007-2016
[1528]8# Provided under the GPL v2
9#
[329]10package ProjectBuilder::Version;
11
[74]12use strict;
[53]13
[329]14# Inherit from the "Exporter" module which handles exporting functions.
15 
[2270]16use vars qw($VERSION $REVISION $PBCONFVER @ISA @EXPORT);
[329]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(pb_version_init);
23
[2105]24$VERSION = "PBVER"."PBEXTDIR";
[1156]25$REVISION = "PBREV";
[2270]26# We fix the format of the conf file for this version of pb
27$PBCONFVER = 1;
[1148]28
[74]29sub pb_version_init {
30
[1156]31my $projectbuilderver = $VERSION;
32my $projectbuilderrev = $REVISION;
[2270]33my $projectbuilderconfver = $PBCONFVER;
[74]34
[2241]35return($projectbuilderver,$projectbuilderrev);
[74]36}
371;
Note: See TracBrowser for help on using the repository browser.