Last change
on this file since 2239 was 2239, checked in by Bruno Cornec, 7 years ago |
Start move to YAML conf files
|
File size:
876 bytes
|
Rev | Line | |
---|
[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] | 10 | package ProjectBuilder::Version;
|
---|
| 11 |
|
---|
[74] | 12 | use strict;
|
---|
[53] | 13 |
|
---|
[329] | 14 | # Inherit from the "Exporter" module which handles exporting functions.
|
---|
| 15 |
|
---|
[1156] | 16 | use vars qw($VERSION $REVISION @ISA @EXPORT);
|
---|
[329] | 17 | use Exporter;
|
---|
| 18 |
|
---|
| 19 | # Export, by default, all the functions into the namespace of
|
---|
| 20 | # any code which uses this module.
|
---|
| 21 | our @ISA = qw(Exporter);
|
---|
| 22 | our @EXPORT = qw(pb_version_init);
|
---|
| 23 |
|
---|
[2105] | 24 | $VERSION = "PBVER"."PBEXTDIR";
|
---|
[1156] | 25 | $REVISION = "PBREV";
|
---|
[1148] | 26 |
|
---|
[74] | 27 | sub pb_version_init {
|
---|
| 28 |
|
---|
[1156] | 29 | my $projectbuilderver = $VERSION;
|
---|
| 30 | my $projectbuilderrev = $REVISION;
|
---|
[2239] | 31 | # We fix the format of the conf file for this version of pb
|
---|
| 32 | my $projectbuilderconfver = 1;
|
---|
[74] | 33 |
|
---|
[2239] | 34 | return($projectbuilderver,$projectbuilderrev,$projectbuilderconfver);
|
---|
[74] | 35 | }
|
---|
| 36 | 1;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.